We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug report or Feature request?
Bug report
Version (complete output of terser -V or specific git commit)
terser -V
terser 5.10.0
Complete CLI command or minify() options used
minify()
npx terser index.js --format ascii_only --ecma=2017
terser input
terser
console.log(/(^|[^а-яё])([☎☏✆📠📞📱]|т\.|тел\.|ф\.|моб\.|факс|сотовый|мобильный|телефон)(:?\s*?)([+\d(][\d \u00A0\-()]{3,}\d)/gi)
terser output or error
console.log(/(^|[^\u0430-\u044f\u0451])([\u260e\u260f\u2706\u{1f4e0}\u{1f4de}\u{1f4f1}]|\u0442\.|\u0442\u0435\u043b\.|\u0444\.|\u043c\u043e\u0431\.|\u0444\u0430\u043a\u0441|\u0441\u043e\u0442\u043e\u0432\u044b\u0439|\u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439|\u0442\u0435\u043b\u0435\u0444\u043e\u043d)(:?\s*?)([+\d(][\d \u00A0\-()]{3,}\d)/gi);
Expected result input regexp test on string '111111' ->> false output regexp test on string '111111' ->> true
The text was updated successfully, but these errors were encountered:
(based on this issue angular/angular-cli#22707)
Sorry, something went wrong.
This seems to be caused by using the \u{hexhexhex} form in RegExps:
\u{hexhexhex}
/📞/.test("📞") // => true /\ud83d\udcde/.test("📞") // => true /\u{1f4de}/.test("📞") // => false
c2e550f
There we go! I'll release this on Monday
No branches or pull requests
Bug report or Feature request?
Bug report
Version (complete output of
terser -V
or specific git commit)terser 5.10.0
Complete CLI command or
minify()
options usednpx terser index.js --format ascii_only --ecma=2017
terser
inputterser
output or errorExpected result
input regexp test on string '111111' ->> false
output regexp test on string '111111' ->> true
The text was updated successfully, but these errors were encountered: