aboutsummaryrefslogtreecommitdiff
path: root/test/input/issue-3315
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2019-03-15 00:20:20 +0800
committerGitHub <noreply@github.com>2019-03-15 00:20:20 +0800
commitd90777b724689af625c36ed6d557b024775ee95a (patch)
tree5fe1aad5f5aeaad383b0cef847b445e862af07fd /test/input/issue-3315
parente49297e5eb7039246cc3a78019234826631eb623 (diff)
downloadtracifyjs-d90777b724689af625c36ed6d557b024775ee95a.tar.gz
tracifyjs-d90777b724689af625c36ed6d557b024775ee95a.zip
parse `mangle.properties.regex` in `--config-file` properly (#3337)
fixes #3315
Diffstat (limited to 'test/input/issue-3315')
-rw-r--r--test/input/issue-3315/config.json8
-rw-r--r--test/input/issue-3315/input.js8
2 files changed, 16 insertions, 0 deletions
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;
+}