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

Fix #4489: Regex octal escape sequence bug #4490

Merged

Conversation

helixbass
Copy link
Collaborator

Fixes #4489

Splits INVALID_ESCAPE regex into separate regexes REGEX_INVALID_ESCAPE (which doesn't match back-references eg \1) and STRING_INVALID_ESCAPE, thus avoiding the special-case logic for regex back-references (which contained the bug)

@lydell
Copy link
Collaborator

lydell commented Apr 7, 2017

Nice catch, and nice fix! 👍

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

Successfully merging this pull request may close these issues.

3 participants