Skip to content

Commit b376cba

Browse files
committed
fix: greedy comment erasure
1 parent 0be8948 commit b376cba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function buildMeta() {
2121
function build() {
2222
return src(underscript)
2323
.pipe(replace('{{ version }}', package.version))
24-
.pipe(replace(/((?: +|\t+|^)\/\/.[^@=].*$|(?: +|\t+|^)\/\*(?:.|\n\r?)+\*\/)/gm, ''))
24+
.pipe(replace(/((?: +|\t+|^)\/\/.[^@=].*$|(?: +|\t+|^)\/\*(?:[^*]|\n\r?)+\*\/)/gm, ''))
2525
.pipe(replace(/(\n\r?){2,}/gm, '$1'))
2626
.pipe(iff(!deploy, insert.transform((content, file) => `// ${file.basename}\n${content}`)))
2727
.pipe(concat('undercards.user.js'))

0 commit comments

Comments
 (0)