diff --git a/commands/drawDesign.cjs b/commands/drawDesign.cjs index 6b677fe..0bf4e0e 100644 --- a/commands/drawDesign.cjs +++ b/commands/drawDesign.cjs @@ -217,7 +217,8 @@ function charIterate(input) { let temp = input.split(''); for (let i = 0; i < stringLength; ++i) { let compareString = temp.join(""); - if (surrogatePairs.exec(compareString)[index] == i) { + console.log(surrogatePairs.exec(compareString)); + if (surrogatePairs.exec(compareString).index == i) { stringLength--; console.log("Decreasing stringLength variable to", stringLength); }