Skip to content

Commit

Permalink
fix: extract comment conditions is case insensitivity
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Sep 5, 2018
1 parent 47e6e50 commit 19e1e43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/minify.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const buildComments = (options, terserOptions, extractedComments) => {
// Use /^\**!|@preserve|@license|@cc_on/ RegExp
if (typeof options.extractComments === 'boolean') {
condition.preserve = commentsOpts;
condition.extract = /^\**!|@preserve|@license|@cc_on/;
condition.extract = /^\**!|@preserve|@license|@cc_on/i;
} else if (
typeof options.extractComments === 'string' ||
options.extractComments instanceof RegExp
Expand Down

0 comments on commit 19e1e43

Please sign in to comment.