From 8d74f3437352e22b3fd18ce602a4378170ec6598 Mon Sep 17 00:00:00 2001 From: Anthony Van de Gejuchte Date: Sun, 16 Oct 2016 20:57:28 +0200 Subject: Don't filter shebangs when using the 'some' comment filter Also clarify documentation a bit more about using regexp as filter --- bin/uglifyjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/uglifyjs') diff --git a/bin/uglifyjs b/bin/uglifyjs index 76438961..ce2e9411 100755 --- a/bin/uglifyjs +++ b/bin/uglifyjs @@ -47,7 +47,7 @@ Use -c with no argument to use the default compression options.") By default this works like Google Closure, keeping JSDoc-style comments that contain \"@license\" or \"@preserve\". \ You can optionally pass one of the following arguments to this flag:\n\ - \"all\" to keep all comments\n\ -- a valid JS regexp (needs to start with a slash) to keep only comments that match.\n\ +- a valid JS RegExp like `/foo/`or `/^!/` to keep only matching comments.\n\ \ Note that currently not *all* comments can be kept when compression is on, \ because of dead code removal or cascading statements into sequences.") -- cgit v1.2.3