Let's try mozilla's fixedCharAt function
This commit is contained in:
parent
512ee8d11d
commit
81fd5b5c9b
@ -218,8 +218,8 @@ function charIterate(input) {
|
||||
for (let i = 0; i < stringLength; ++i) {
|
||||
let compareString = temp.join("");
|
||||
console.log(surrogatePairs.exec(compareString), compareString);
|
||||
let eval = surrogatePairs.exec(compareString).index;
|
||||
if (eval != null && eval == i) {
|
||||
let stringEvalIndex = surrogatePairs.exec(compareString).index;
|
||||
if (stringEvalIndex != null && stringEvalIndex == i) {
|
||||
stringLength--;
|
||||
console.log("Decreasing stringLength variable to", stringLength);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user