From 4fe4257c69734448fb242dfaab3804f883165df3 Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Thu, 18 Oct 2012 10:54:10 +0300 Subject: [PATCH] fix `--comments` (close #16) --- bin/uglifyjs2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } } -- 2.34.1