From 30dcc2bdf0755445a0450f20dc5104b3ac4ad170 Mon Sep 17 00:00:00 2001 From: Benaiah Mischenko Date: Tue, 15 Aug 2017 14:42:55 -0700 Subject: [PATCH] Fix confusing "yaml/yml" distinction in formats.js Makes "yml" and "yaml" synonyms for both file extensions and format settings. --- src/formats/formats.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/formats/formats.js b/src/formats/formats.js index 6eafb5d9..fc7740fe 100644 --- a/src/formats/formats.js +++ b/src/formats/formats.js @@ -15,6 +15,7 @@ function formatByType(type) { export function formatByExtension(extension) { return { yml: yamlFormatter, + yaml: yamlFormatter, json: jsonFormatter, md: FrontmatterFormatter, markdown: FrontmatterFormatter, @@ -24,6 +25,7 @@ export function formatByExtension(extension) { function formatByName(name) { return { + yml: yamlFormatter, yaml: yamlFormatter, frontmatter: FrontmatterFormatter, }[name] || FrontmatterFormatter;