Skip to content

Fix #4489: Regex octal escape sequence bug#4490

Merged
lydell merged 1 commit intojashkenas:masterfrom
helixbass:iss4489_regex_octal_escape_sequence_bug
Apr 7, 2017
Merged

Fix #4489: Regex octal escape sequence bug#4490
lydell merged 1 commit intojashkenas:masterfrom
helixbass:iss4489_regex_octal_escape_sequence_bug

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! 👍

@lydell lydell merged commit 90ec761 into jashkenas:master Apr 7, 2017
EsrefDurna added a commit to EsrefDurna/coffeescript that referenced this pull request Nov 12, 2025
…escape_sequence_bug

Fix jashkenas#4489: Regex octal escape sequence bug
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