Let's try mozilla's fixedCharAt function
This commit is contained in:
parent
588286b3f1
commit
e74fc619a9
@ -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--;
|
||||
|
Loading…
x
Reference in New Issue
Block a user