From 4aded5d3e577e2d3c8f59537462548377325780d Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Sun, 30 Apr 2023 19:31:27 -0500 Subject: [PATCH] Let's try mozilla's fixedCharAt function --- commands/drawDesign.cjs | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/drawDesign.cjs b/commands/drawDesign.cjs index 3ab8608..690d8ac 100644 --- a/commands/drawDesign.cjs +++ b/commands/drawDesign.cjs @@ -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) {