Skip to content

Unicode sequence normalization #24

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

Merged
merged 4 commits into from
Jul 13, 2021
Merged

Conversation

kristianmitk
Copy link
Collaborator

It turns out that the so called COMBINING DIAERESIS' (U+0308) is the culprit here. We now normalize the character sequence before we loop over it. This way we ensure not ending up treating the diaeresis as a separate character during looping.


Check https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize#description for more details on the normalization.

@kristianmitk kristianmitk requested a review from bersling July 13, 2021 08:18
@bersling bersling merged commit 0ad6b7f into master Jul 13, 2021
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