Skip to content

Raise a ParserError on all incomplete unicode escape sequence.#762

Merged
byroot merged 1 commit intoruby:masterfrom
byroot:invalid-escape
Mar 11, 2025
Merged

Raise a ParserError on all incomplete unicode escape sequence.#762
byroot merged 1 commit intoruby:masterfrom
byroot:invalid-escape

Conversation

@byroot
Copy link
Copy Markdown
Member

@byroot byroot commented Mar 11, 2025

This was the behavior until 2.10.0 unadvertently changed it.

"\u1" would raise, but "\u1zzz" wouldn't.

Loading
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

Successfully merging this pull request may close these issues.

2 participants