Let's try mozilla's fixedCharAt function
This commit is contained in:
parent
41611bc18c
commit
9b30795909
@ -217,7 +217,7 @@ function charIterate(input) {
|
||||
let temp = input.split('');
|
||||
for (let i = 0; i < stringLength; ++i) {
|
||||
let compareString = temp.join("");
|
||||
if (surrogatePairs.exec(compareString).index == i) {
|
||||
if (surrogatePairs.exec(compareString)[index] == i) {
|
||||
stringLength--;
|
||||
console.log("Decreasing stringLength variable to", stringLength);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user