aboutsummaryrefslogtreecommitdiff
path: root/bin/uglifyjs2
diff options
context:
space:
mode:
Diffstat (limited to 'bin/uglifyjs2')
-rwxr-xr-xbin/uglifyjs23
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/uglifyjs2 b/bin/uglifyjs2
index 8515586a..e69ed5cf 100755
--- a/bin/uglifyjs2
+++ b/bin/uglifyjs2
@@ -125,8 +125,7 @@ if (ARGS.comments) {
var type = comment.type;
if (type == "comment2") {
// multiline comment
- return text.indexOf("@preserve") >= 0
- || text.indexOf("@license") >= 0;
+ return /@preserve|@license|@cc_on/i.test(test);
}
}
}