From 75cf85d41879deb95fa76497e67b3aabfb803520 Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Sun, 30 Apr 2023 19:58:29 -0500 Subject: [PATCH] Let's try mozilla's fixedCharAt function --- commands/drawDesign.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/drawDesign.cjs b/commands/drawDesign.cjs index 8f00368..013261e 100644 --- a/commands/drawDesign.cjs +++ b/commands/drawDesign.cjs @@ -214,7 +214,7 @@ const surrogatePairs = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g; var charIterateState; function charIterate(input) { let stringLength = (input.length - 1); - let temp = input.toCharArray(); + let temp = input.split(''); for (let i = 0; i < stringLength; ++i) { let compareString = temp.join(""); if (surrogatePairs.exec(input).index == i) {