Skip to content
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

Disabling diacritics sensitive does not work with not latin letters #55

Open
p-kat opened this issue Aug 6, 2021 · 0 comments
Open

Comments

@p-kat
Copy link

p-kat commented Aug 6, 2021

Hi Albert,

i think the diacritics package does not work that well in non latin languages ( i.e Greek ), something that would work could be
normalizing the string like str.normalize("NFD") and then replacing the diacritics with a .replace(/[\u0300-\u036f]/g, "")

how does that sound ?

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

No branches or pull requests

1 participant