diff options
author | Mihai Bazon <mihai@bazon.net> | 2012-10-09 18:25:00 +0300 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2012-10-09 18:25:00 +0300 |
commit | 88beddfa91c8f362cc74538937ce883541e77680 (patch) | |
tree | c8376767ce770598969f1f4d000ab9b3613524e1 /bin | |
parent | 1b0aab2ce9e7f429ceeda98ee0cda448085918ec (diff) | |
download | tracifyjs-88beddfa91c8f362cc74538937ce883541e77680.tar.gz tracifyjs-88beddfa91c8f362cc74538937ce883541e77680.zip |
make `--comments` keep @cc_on too
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/uglifyjs2 | 3 |
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); } } } |