From dbeeea4dbb4375c8091fd649feaef5314aa57eeb Mon Sep 17 00:00:00 2001 From: Matt Stypa Date: Mon, 24 Sep 2018 21:12:07 -0500 Subject: [PATCH] Added ability to protect comments when --no-comments options is use for CLI init command --- src/cli/commands/init.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/commands/init.js b/src/cli/commands/init.js index 777c61754..481506cec 100644 --- a/src/cli/commands/init.js +++ b/src/cli/commands/init.js @@ -28,7 +28,7 @@ export const optionMap = { */ function stripBlockComments(input) { return stripComments - .block(input) + .block(input, { keepProtected: true }) .replace(/\n\s*\n\s*\n/g, '\n\n') // Strip unnecessary line breaks .trim() .concat('\n')