Skip to content
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

Meta character . in characterClass is allowed? #167

Open
Fazerty opened this issue Jan 7, 2019 · 0 comments
Open

Meta character . in characterClass is allowed? #167

Fazerty opened this issue Jan 7, 2019 · 0 comments

Comments

@Fazerty
Copy link

Fazerty commented Jan 7, 2019

Hello,

Adding the meta specialCharacter '.' in a CharacterClass shouldn't lead to an error?

Generate a regexp from

{"body":
    {"type":"CharacterClass",
     "expressions": [{"type":"Char","value":".","kind":"meta"}]},
  "flags":"gm","type":"RegExp"}

has this result
/[.]/gm

Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant