Let's try mozilla's fixedCharAt function

master
Chloe Fontenot 🏳️‍⚧️ 2023-04-30 19:03:13 +07:00
parent 35af3ce870
commit 5cf9dab550
1 changed files with 1 additions and 1 deletions

@ -220,7 +220,7 @@ function charIterate(input) {
if (charIterateState < (input.length - 1)) { if (charIterateState < (input.length - 1)) {
charIterateState++; charIterateState++;
if (surrogatePairs.exec(input.charCodeAt(charIterateState)) !== null) { if (surrogatePairs.exec(input.charCodeAt(charIterateState)) !== null) {
charIterateState++; //charIterateState++;
} }
} else { } else {
charIterateState = 0; charIterateState = 0;