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
ericgio
changed the title
Diacritics in non-Latin alphabet strings are not striped
Diacritics in non-Latin alphabet strings are not stripped
Sep 6, 2021
Version
5.2.0
Steps to reproduce
"Καλημέρα"
is not displayedExpected Behavior
"καλημερα"
(charcodes:[954, 945, 955, 951, 956, 941, 961, 945]
)should match
"καλημέρα"
(charcodes[]
)when
stripDiactrics
istrue
Actual Behavior
"καλημερα"
did not match"καλημέρα"
Suggestion
Using something like
str.normalize("NFD").replace(/[\u0300-\u036f]/g, "")
may work better than the currentstripDiactrics
, although it's not supported in Internet Explorer and WebView Android.The text was updated successfully, but these errors were encountered: