AlbertLucianto / vue-text-highlight

Text highlighter library for Vue.js :lipstick:
https://albertlucianto.github.io/vue-text-highlight
MIT License
326 stars 35 forks source link

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

Open p-kat opened 3 years ago

p-kat commented 3 years ago

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 ?