diff --git a/commands/drawDesign.cjs b/commands/drawDesign.cjs index 5ac28fc..89b9dfb 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); - console.log(surrogatePairs.exec(input.charCodeAt(charIterateState))); + console.log(surrogatePairs.exec(input)); for (let i = 0; i < stringLength; ++i) { if (false) { stringLength--;