improve `RegExp` handling (#1959)
authorAlex Lam S.L <alexlamsl@gmail.com>
Wed, 17 May 2017 12:10:50 +0000 (20:10 +0800)
committerGitHub <noreply@github.com>
Wed, 17 May 2017 12:10:50 +0000 (20:10 +0800)
commit569c21e952c99340db73d6ad1c7102500cc1b341
tree1ca43da653f8640cd3aac12d2a34822dfef310b8
parent87c3a2c0ce2cfd86011d13688080a29520bb3c7f
improve `RegExp` handling (#1959)

- remove `options.output.unescape_regexps`
- preserve original pattern whenever possible

fixes #54
fixes #1929
lib/output.js
lib/parse.js
test/compress/string-literal.js