From d90777b724689af625c36ed6d557b024775ee95a Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Fri, 15 Mar 2019 00:20:20 +0800 Subject: parse `mangle.properties.regex` in `--config-file` properly (#3337) fixes #3315 --- test/input/issue-3315/config.json | 8 ++++++++ test/input/issue-3315/input.js | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 test/input/issue-3315/config.json create mode 100644 test/input/issue-3315/input.js (limited to 'test/input/issue-3315') diff --git a/test/input/issue-3315/config.json b/test/input/issue-3315/config.json new file mode 100644 index 00000000..4bcbaed9 --- /dev/null +++ b/test/input/issue-3315/config.json @@ -0,0 +1,8 @@ +{ + "compress": false, + "mangle": { + "properties": { + "regex": "/^_/" + } + } +} diff --git a/test/input/issue-3315/input.js b/test/input/issue-3315/input.js new file mode 100644 index 00000000..5013fc2f --- /dev/null +++ b/test/input/issue-3315/input.js @@ -0,0 +1,8 @@ +function f() { + "aaaaaaaaaa"; + var o = { + prop: 1, + _int: 2, + }; + return o.prop + o._int; +} -- cgit v1.2.3