add zero-width space
This commit is contained in:
parent
0d7c7b6647
commit
2745467dbb
@ -214,12 +214,13 @@ var charIterateState;
|
|||||||
function charIterate(input) {
|
function charIterate(input) {
|
||||||
if (charIterateState == undefined) {
|
if (charIterateState == undefined) {
|
||||||
charIterateState = 0;
|
charIterateState = 0;
|
||||||
}
|
} else {
|
||||||
if (charIterateState < (input.length - 1)) {
|
if (charIterateState < (input.length - 1)) {
|
||||||
charIterateState++;
|
charIterateState++;
|
||||||
} else {
|
} else {
|
||||||
charIterateState = 0;
|
charIterateState = 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
console.log(charIterateState, input.charAt(charIterateState));
|
console.log(charIterateState, input.charAt(charIterateState));
|
||||||
return charIterateState;
|
return charIterateState;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user