Commit 5a01f29
fix(search): handle non-decomposable diacritics in stripDiacritics
Characters like ł, ø, ß, đ, ħ, ŧ, ı survive NFD normalization
unchanged. Add explicit replacement map to convert them to their
ASCII equivalents (e.g. ł→l, ß→ss, ø→o).
Based on the approach from home-assistant/frontend#30399.
Closes #816
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent db0e181 commit 5a01f29
14 files changed
Lines changed: 254 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
776 | 776 | | |
777 | 777 | | |
778 | 778 | | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
779 | 806 | | |
780 | | - | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
781 | 810 | | |
782 | 811 | | |
783 | 812 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
780 | 780 | | |
781 | 781 | | |
782 | 782 | | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
783 | 810 | | |
784 | | - | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
785 | 814 | | |
786 | 815 | | |
787 | 816 | | |
| |||
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments