-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[RegExp] /[\s-a-c]/ is parsed incorrectly #258
Comments
dilijev
changed the title
/[\s-a-c]/ is parsed incorrectly
[RegExp] /[\s-a-c]/ is parsed incorrectly
Nov 15, 2016
kfukuda2
pushed a commit
to kfukuda2/ChakraCore
that referenced
this issue
Jul 3, 2018
kfukuda2
pushed a commit
to kfukuda2/ChakraCore
that referenced
this issue
Jul 6, 2018
chakrabot
pushed a commit
that referenced
this issue
Jul 10, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, Chakra parses
/[\s-a-c]/
as:\s
-
a-c
However, other engines parse it as:
\s-a
, which is treated as the union of class\s
, and the characters-
anda
-
c
As a result, Chakra matches the character
b
with this pattern whereas others don't.Annex B of the spec has been changed to the rules used by other engines, so Chakra should be updated to match the spec.
The text was updated successfully, but these errors were encountered: