CR feedback

This commit is contained in:
Andrea Vos 2025-01-19 20:52:05 +01:00
parent 73734d9d31
commit 2c6b8407c2

View File

@ -67,6 +67,8 @@ export const hbsLatinToCyrillic = (str: string): string => {
let result = '';
let i = 0;
str = str.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
while (i < str.length) {
if (i + 1 < str.length) {
// check for digraphs