From: Mihai Bazon Date: Thu, 18 Oct 2012 07:54:10 +0000 (+0300) Subject: fix `--comments` (close #16) X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=4fe4257c69734448fb242dfaab3804f883165df3;p=UglifyJS.git fix `--comments` (close #16) --- diff --git a/bin/uglifyjs2 b/bin/uglifyjs2 index acca760d..aadda7cf 100755 --- a/bin/uglifyjs2 +++ b/bin/uglifyjs2 @@ -127,7 +127,7 @@ if (ARGS.comments) { var type = comment.type; if (type == "comment2") { // multiline comment - return /@preserve|@license|@cc_on/i.test(test); + return /@preserve|@license|@cc_on/i.test(text); } } }