-
-
Notifications
You must be signed in to change notification settings - Fork 329
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 'n #1508
Comments
This flag is not supported by native javascript regexps and it can't be fixed without using shims like XRegExp. See #591 for more information |
This is still a bug, it is unsupported code that is valid ruby. If we are going to claim it is a ruby compiler, we need to keep this open. |
Yes, but it's enough to keep track of this under the umbrella issue that is #591. The deal for now is that native JS regexps are used (as we do with numbers, arrays, and procs). |
xarasho |
the flag \n means ascii encoding.
So I was able to transform them into unicode constants
becomes
So I think the compiler could support that easily. |
I would like to treat this a separate issue, because I don't see the encoding types being handled in the other issue. If unsupported please mark as such. |
SyntaxError: Invalid flags supplied to RegExp constructor 'n'
error
Invalid flags supplied to RegExp constructor 'n
input
source
https://github.com/boukeversteegh/chise/blob/342df4be600e2e9790cba880dd9b3cf54c436831/ruby/chise/string.rb
The text was updated successfully, but these errors were encountered: