|
|
|
@ -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);
|
|
|
|
|
}
|
|
|
|
|