diff options
author | Erik Desjardins <erikdesjardins@users.noreply.github.com> | 2017-08-14 00:30:08 -0400 |
---|---|---|
committer | Alex Lam S.L <alexlamsl@gmail.com> | 2017-08-14 12:30:08 +0800 |
commit | 16d40915b480c38b9ef359223cd4f46146eb36c0 (patch) | |
tree | f865cc4e4850e404d6ba424f36d44259b3fe799d /test/compress/ascii.js | |
parent | e7c21e87e3a3d1c9700941ecdf97a2a50fa2ae66 (diff) | |
download | tracifyjs-16d40915b480c38b9ef359223cd4f46146eb36c0.tar.gz tracifyjs-16d40915b480c38b9ef359223cd4f46146eb36c0.zip |
don't escape null characters as \0 when followed by any digit (#2273)
fixes #2272
Diffstat (limited to 'test/compress/ascii.js')
-rw-r--r-- | test/compress/ascii.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/compress/ascii.js b/test/compress/ascii.js index 9662d413..3c7cc5cf 100644 --- a/test/compress/ascii.js +++ b/test/compress/ascii.js @@ -13,7 +13,7 @@ ascii_only_true: { "\x20\x21\x22\x23 ... \x7d\x7e\x7f\x80\x81 ... \xfe\xff\u0fff\uffff"; } } - expect_exact: 'function f(){return"\\x000\\x001\\x007\\08\\0"+"\\0\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\b\\t\\n\\v\\f\\r\\x0e\\x0f"+"\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f"+\' !"# ... }~\\x7f\\x80\\x81 ... \\xfe\\xff\\u0fff\\uffff\'}' + expect_exact: 'function f(){return"\\x000\\x001\\x007\\x008\\0"+"\\0\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\b\\t\\n\\v\\f\\r\\x0e\\x0f"+"\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f"+\' !"# ... }~\\x7f\\x80\\x81 ... \\xfe\\xff\\u0fff\\uffff\'}' } ascii_only_false: { @@ -31,5 +31,5 @@ ascii_only_false: { "\x20\x21\x22\x23 ... \x7d\x7e\x7f\x80\x81 ... \xfe\xff\u0fff\uffff"; } } - expect_exact: 'function f(){return"\\x000\\x001\\x007\\08\\0"+"\\0\x01\x02\x03\x04\x05\x06\x07\\b\\t\\n\\v\\f\\r\x0e\x0f"+"\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"+\' !"# ... }~\x7f\x80\x81 ... \xfe\xff\u0fff\uffff\'}' + expect_exact: 'function f(){return"\\x000\\x001\\x007\\x008\\0"+"\\0\x01\x02\x03\x04\x05\x06\x07\\b\\t\\n\\v\\f\\r\x0e\x0f"+"\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"+\' !"# ... }~\x7f\x80\x81 ... \xfe\xff\u0fff\uffff\'}' } |