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

Regex with 'u' flag and escaped special characters can't be parsed #23

Closed
regseb opened this issue Sep 14, 2018 · 4 comments
Closed

Regex with 'u' flag and escaped special characters can't be parsed #23

regseb opened this issue Sep 14, 2018 · 4 comments

Comments

@regseb
Copy link

regseb commented Sep 14, 2018

Hi,

Regex with unicode flag and some escaped special characters can't be parsed. For example this regex return "/\./u can't be parsed: invalid Unicode escape \." error :

  • /\./u
  • /\^/u
  • /\$/u
  • /\{/u
  • /\}/u
  • /\]/u

The other special characters work (*, +, ?, (, ), |, [, \).

@BrainMaestro
Copy link
Owner

Hi @regseb thanks for reporting the issue. It's a bit strange, but would you mind opening another one at regexp-tree? This plugin is just a frontend for the library. All the regex parsing logic is there. Once it gets fixed, I'll update the dependency

@regseb
Copy link
Author

regseb commented Sep 15, 2018

I open an issue on regexp-tree: DmitrySoshnikov/regexp-tree#162

Thanks.

@BrainMaestro
Copy link
Owner

Hi @regseb thanks for that. I'll keep an eye on it

@BrainMaestro
Copy link
Owner

@regseb I will go ahead and close this now; since the upstream issue does not seem to have any activity

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

2 participants