-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
Invalid flags supplied to RegExp constructor 'u' #156
Comments
Had the same issue here, updating to latest LTS version of node.js seemed to do the trick |
i have tested in 4.2.2 version but still, it failed which version did you use |
Still getting the error here on version 4.4.7, it's working on the current LTS version of 6.10.3 |
node.js 6.0 is required starting from xmlbuilder v9. |
Please consider to support all node LTS versions as long as they are in maintenance. Humans are bad at semver. Dropping node4 support broke our builds, because another library author just depended on xmlbuilder >= 2 in her library. I know thats not your fault, but if important packages like yours would at least not drop support for active/in maintenance node LTS versions, it would make life a lot easier .. |
Fair point. I'll see what I can do. |
Just upgraded and ran into this issue. Please consider support for all LTS versions. |
PR #161 should restore the compatibility. |
We are getting the issue "Invalid flags supplied to RegExp constructor 'u'" in lib/XMLStringifier.js:140
in the below line
str.match(/[\u0000\ud800-\udfff\ufffe-\uffff]/u);
The /u modifier in PHP is for unicode support. This modifier is not supported in JavaScript.
The text was updated successfully, but these errors were encountered: