-
-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
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
Issue with complex RegExp (like those in fabricjs) #526
Comments
The root of the issue is the escaping. My minification got to much |
Thanks. I'm not sure if it has any workaround. Planning to release a patch version this week after a few more bug fixes. Closing this as it's fixed in master. |
I will answer for those having the same issue: you should deactivate |
Hi,
I have an issue when using babili in my project that depends on fabricjs
After minification (preset env no extra params) I got a code like this
with
qe
equals to"(?:(?:(matrix)\\s*\\(\\s*((?:[-+]?(?:\d+|\d*\.\d+)(?:e[-+]?\d+)?))(?:\s+,?\s*|,\s*)((?:[-+]?(?:\d+|\d*\.\d+)(?:e[-+]?\d+)?))(?:\s+,?\s*|,\s*)((?:[-+]?(?:\d+|\d*\.\d+)(?:e[-+]?\d+)?))(?:\s+,?\s*|,\s*)((?:[-+]?(?:\d+|\d*\.\d+)(?:e[-+]?\d+)?))(?:\s+,?\s*|,\s*)((?:[-+]?(?:\d+|\d*\.\d+)(?:e[-+]?\d+)?))(?:\s+,?\s*|,\s*)((?:[-+]?(?:\d+|\d*\.\d+)(?:e[-+]?\d+)?))\s*\))|(?:(translate)\s*\(\s*((?:[-+]?(?:\d+|\d*\.\d+)(?:e[-+]?\d+)?))(?:(?:\s+,?\s*|,\s*)((?:[-+]?(?:\d+|\d*\.\d+)(?:e[-+]?\d+)?)))?\s*\))|(?:(scale)\s*\(\s*((?:[-+]?(?:\d+|\d*\.\d+)(?:e[-+]?\d+)?))(?:(?:\s+,?\s*|,\s*)((?:[-+]?(?:\d+|\d*\.\d+)(?:e[-+]?\d+)?)))?\s*\))|(?:(rotate)\s*\(\s*((?:[-+]?(?:\d+|\d*\.\d+)(?:e[-+]?\d+)?))(?:(?:\s+,?\s*|,\s*)((?:[-+]?(?:\d+|\d*\.\d+)(?:e[-+]?\d+)?))(?:\s+,?\s*|,\s*)((?:[-+]?(?:\d+|\d*\.\d+)(?:e[-+]?\d+)?)))?\s*\))|(?:(skewX)\s*\(\s*((?:[-+]?(?:\d+|\d*\.\d+)(?:e[-+]?\d+)?))\s*\))|(?:(skewY)\s*\(\s*((?:[-+]?(?:\d+|\d*\.\d+)(?:e[-+]?\d+)?))\s*\)))"
being a
SyntaxError: Invalid regular expression: Unterminated group
Whereas when trying in online REPL I got a code like this
with
transform
equals towhich is a valid RegExp.
I'm still searching what are the options differences between the online REPL and default configuration to point out the faulty plugin.
The text was updated successfully, but these errors were encountered: