-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix(hstr): Skip only \u for unicode
#11216
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
Conversation
🦋 Changeset detectedLatest commit: 1344aef The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Binary Sizes
Commit: e1d6c21 |
CodSpeed Performance ReportMerging #11216 will not alter performanceComparing Summary
|
|
cc @h-a-n-a Can you take a look? Does this look correct? |
|
Also, FYI, AI created #11217 |
Looks like this is a correct implementation. I made a mistake in the previous PR |
kdy1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
\u for unicode
**Description:** Attempt to fix #11214. The reason for unespaced `\\` was special handling for unicode `\u` codepoint, that escapes any string literal starts with `\u` - for windows, path separator with u (`\\u`) matches with this case. PR attempts to solve by lookahead, confirming all 4 following char is hex digit to represent unicode hex, otherwise consider it as plain string. To be honest I'm not sure if this is acceptable approach or not, feel free to close if there's better way to fix. **Related issue:** - Closes #11214
Description:
Attempt to fix #11214.
The reason for unespaced
\\was special handling for unicode\ucodepoint, that escapes any string literal starts with\u- for windows, path separator with u (\\u) matches with this case.PR attempts to solve by lookahead, confirming all 4 following char is hex digit to represent unicode hex, otherwise consider it as plain string. To be honest I'm not sure if this is acceptable approach or not, feel free to close if there's better way to fix.
BREAKING CHANGE:
Related issue (if exists):
#11214