diff options
author | Anthony Van de Gejuchte <anthonyvdgent@gmail.com> | 2016-10-16 20:57:28 +0200 |
---|---|---|
committer | Richard van Velzen <rvanvelzen1@gmail.com> | 2016-10-23 21:31:03 +0200 |
commit | 8d74f3437352e22b3fd18ce602a4378170ec6598 (patch) | |
tree | bd82ae91555550753bf2b1c34b6a5523365df07c /test | |
parent | 266ddd96399afcdee56d9d58b287f912b8728342 (diff) | |
download | tracifyjs-8d74f3437352e22b3fd18ce602a4378170ec6598.tar.gz tracifyjs-8d74f3437352e22b3fd18ce602a4378170ec6598.zip |
Don't filter shebangs when using the 'some' comment filter
Also clarify documentation a bit more about using regexp as filter
Diffstat (limited to 'test')
-rw-r--r-- | test/mocha/comment-filter.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/mocha/comment-filter.js b/test/mocha/comment-filter.js index 4330d1eb..79162755 100644 --- a/test/mocha/comment-filter.js +++ b/test/mocha/comment-filter.js @@ -57,4 +57,9 @@ describe("comment filters", function() { assert.strictEqual(ast.print_to_string({comments: f}), "#!Random comment\n//test1\n/*test2*/\n"); }); + + it("Should never be able to filter comment5 when using 'some' as filter", function() { + var ast = UglifyJS.parse("#!foo\n//foo\n/*@preserve*/\n/* please hide me */"); + assert.strictEqual(ast.print_to_string({comments: "some"}), "#!foo\n/*@preserve*/\n"); + }); }); |