Let's try mozilla's fixedCharAt function
This commit is contained in:
parent
1adcc069df
commit
4aded5d3e5
@ -217,6 +217,7 @@ function charIterate(input) {
|
||||
for (let i = 0; i < stringLength; ++i) {
|
||||
if (surrogatePairs.exec(input.charCodeAt(charIterateState)) !== null) {
|
||||
stringLength--;
|
||||
console.log("Decreasing stringLength variable to", stringLength);
|
||||
}
|
||||
}
|
||||
if (charIterateState == undefined) {
|
||||
|
Loading…
Reference in New Issue
Block a user