Skip to content

Commit dbeeea4

Browse files
committed
Added ability to protect comments when --no-comments options is use for CLI init command
1 parent 48387a8 commit dbeeea4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli/commands/init.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const optionMap = {
2828
*/
2929
function stripBlockComments(input) {
3030
return stripComments
31-
.block(input)
31+
.block(input, { keepProtected: true })
3232
.replace(/\n\s*\n\s*\n/g, '\n\n') // Strip unnecessary line breaks
3333
.trim()
3434
.concat('\n')

0 commit comments

Comments
 (0)