Skip to content

fix: handle non-decomposable diacritics in stripDiacritics#816

Closed
lkostrowski wants to merge 1 commit intokrisk:mainfrom
lkostrowski:lkostrowski/fix-diacritics
Closed

fix: handle non-decomposable diacritics in stripDiacritics#816
lkostrowski wants to merge 1 commit intokrisk:mainfrom
lkostrowski:lkostrowski/fix-diacritics

Conversation

@lkostrowski
Copy link
Copy Markdown

Some characters survive NFD normalization unchanged. Add explicit replacement map for these characters.

Originally implemented in home-assistant/frontend#30399 but probably should be part of Fuse

Some characters survive NFD normalization unchanged.
Add explicit replacement map for these characters.
@krisk
Copy link
Copy Markdown
Owner

krisk commented Apr 2, 2026

Thanks for this — landed in 5a01f29. Applied your approach to the TypeScript source (the codebase was rewritten to TS since this PR was opened) and added tests for Polish (ł), German (ß), Danish (ø), Serbian (đ), and Maltese (ħ) characters.

Appreciated the Home Assistant reference — good to know it's battle-tested there.

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