Merge pull request #528 from netlify/fix-confusing-yaml-vs-yml-format-distinction
Fix confusing "yaml/yml" distinction in formats.js
This commit is contained in:
commit
5020d3d0e5
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user