-
Notifications
You must be signed in to change notification settings - Fork 91
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
ECMA 262: \d should only match ASCII digits #64
Comments
@fdutton on JRuby we behave as you describe. So something with our encodings will not match Any extra info and we can try and figure out why we work and if we really are working how we get that result. |
It looks like Ruby(JRuby) restricts numerics to only be ASCII explicitly: https://github.com/jruby/joni/blob/master/src/org/joni/Syntax.java#L459 |
I'll write some unit-tests but this is what I am doing to work around the issue.
|
@fdutton I don't know where oniguruma repo is but you could check to see if syntax for ECMAScript was updated "up stream". We tend to look at the onigmo fork using by C Ruby but we are pretty far down stream. Perhaps there is a more up to date syntax? |
@enebo I think we are still on par wrt regexp functionality. We've been tracking https://github.com/k-takata/Onigmo/graphs/contributors and there's not a lot of activity there. There's been more changes in MRI codebase lately though. |
There also doesnt seem to be ecma syntax in neither Onigmo or MRI repository. |
Given this pattern
^\d$
This should match:
0
And this should not:
߀
The text was updated successfully, but these errors were encountered: