You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report. If you have a better diacritics library, please make a PR to swap with the new one and I'll give it a look.
Also, you can probably use your bundler's configuration to alias the diacritics module with a custom one which would be even better than "allow user to bring his own diactrics library" because it would allow you to avoid including the diacritics package in your bundle as well.
I opened an issue with node-diactrics but it was not updated for 4 years, so opening an issue here too.
nijikokun/Diacritics.js#6
match-sorter
version: 2.3.0node
version: v11.13.0npm
(oryarn
) version: 1.15.2Relevant code or config
л Л is a lower/upercase case cyrillic/russian L and should not be replaced with latin n when matching.
This breaks case-insensitive search in match-sorter with default settings for any cyrillic text which has this letter.
node-diacritics also has this problem:
andrewrk/node-diacritics#32
but remove-accents does not: https://github.com/tyxla/remove-accents
Example word which does not match: "Лед"
What you did:
What happened:
["лед"], both items should match
Reproduction repository:
https://codesandbox.io/s/r76w8oqo8o
Problem description:
Suggested solution:
The text was updated successfully, but these errors were encountered: