Skip to content

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.

3 participants