Let's try mozilla's fixedCharAt function
This commit is contained in:
parent
c49babb9a1
commit
75cf85d418
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user