fix(lazy mode): not working for arabic accents

This commit is contained in:
Miodec 2024-01-11 23:08:10 +01:00
parent 22373a751f
commit 1c8b5ffc82

View file

@ -71,7 +71,7 @@ export function replaceAccents(
const isUpperCase = cases[i];
const accent = findAccent(char, additionalAccents);
if (accent) {
if (accent !== undefined) {
if (isUpperCase) {
newWordArray.push(accent.substring(0, 1).toUpperCase());
newWordArray.push(accent.substring(1));