Added ability to protect comments when --no-comments options is use for CLI init command
This commit is contained in:
parent
48387a8f8a
commit
dbeeea4dbb
1 changed files with 1 additions and 1 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue