Let's try mozilla's fixedCharAt function

This commit is contained in:
Chloe Fontenot 🏳️‍⚧️ 2023-04-30 19:49:27 -05:00
parent e74fc619a9
commit ab94fe1a67

View File

@ -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));
console.log(surrogatePairs.exec(input, charIterateState));
for (let i = 0; i < stringLength; ++i) {
if (false) {
stringLength--;