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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require \ for unicode-escapes in named captures #67

Closed

Conversation

sirosen
Copy link
Contributor

@sirosen sirosen commented Aug 16, 2023

This resolves #41

Rather than only looking for 'u', look for something ever so slightly more strict: "\\u".

This passes the existing tests and a very simple additional test which reproduces the issue from #41.


Minor caveat: I'm not an experienced hand at Rust. If I need to do more sophisticated work here, I am very willing to try my best but might not have the skills for it yet. 馃槄

This resolves ridiculousfish#41

Rather than only looking for `'u'`, look for something ever so
slightly more strict: `"\\u"`.

This passes the existing tests and a very simple additional test which
reproduces the issue from ridiculousfish#41.
@ridiculousfish
Copy link
Owner

Merged as 4026d98. Thank you!

@sirosen sirosen deleted the handle-u-in-named-captures branch August 20, 2023 04:34
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.

Bug in named captures
2 participants