-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Handle NFC/NFD strings that normalize to the same string. #10355
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
@Zac-HD please advise on how do you feel about this approach. |
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.
Off to a great start - don't forget to add yourself to the AUTHORS
file!
for more information, see https://pre-commit.ci
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.
One key comment below, otherwise looks good to me!
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.
🎉
After a failed assertion of two strings, if they normalize to the same text, encode them in utf-8, show a message and compare their bytes representation to make it clear where the strings are different.
Closes #3426