Let's try mozilla's fixedCharAt function
This commit is contained in:
parent
ab94fe1a67
commit
48f0fb02ee
@ -214,7 +214,8 @@ const surrogatePairs = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
|
|||||||
var charIterateState;
|
var charIterateState;
|
||||||
function charIterate(input) {
|
function charIterate(input) {
|
||||||
let stringLength = (input.length - 1);
|
let stringLength = (input.length - 1);
|
||||||
console.log(surrogatePairs.exec(input, charIterateState));
|
console.log(surrogatePairs.exec(input));
|
||||||
|
console.log(surrogatePairs.lastIndex);
|
||||||
for (let i = 0; i < stringLength; ++i) {
|
for (let i = 0; i < stringLength; ++i) {
|
||||||
if (false) {
|
if (false) {
|
||||||
stringLength--;
|
stringLength--;
|
||||||
|
Loading…
Reference in New Issue
Block a user