From ba2ce95287c6687f9d0868107f3c3e675c1c9251 Mon Sep 17 00:00:00 2001 From: AayushSaini101 Date: Wed, 20 Nov 2024 11:01:42 +0530 Subject: [PATCH] Added support for yml format --- src/commands/pretty.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/pretty.ts b/src/commands/pretty.ts index 35440fd6ff2..68525a2a99b 100644 --- a/src/commands/pretty.ts +++ b/src/commands/pretty.ts @@ -41,7 +41,7 @@ export default class Pretty extends Command { try { const fileFormat = retrieveFileFormat(this.specFile.text()); - if (fileFormat === 'yaml') { + if (fileFormat === 'yaml' || fileFormat == 'yml') { const yamlDoc = yaml.parseDocument(content); formatted = yamlDoc.toString({ lineWidth: 0,