Skip to content

Commit c0613a5

Browse files
committed
test
1 parent d79d4de commit c0613a5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/grapheme.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ export function* graphemeSegments(input) {
101101

102102
} else if (catAfter === 0) {
103103
incb = consonant && linker && isIndicConjunctConsonant(cp);
104+
linker = false;
104105
}
105106
}
106107

@@ -121,16 +122,14 @@ export function* graphemeSegments(input) {
121122
_catBegin = catAfter;
122123
_hd = cp;
123124

124-
} else if (cp >= 2325) {
125+
} else if (cp >= 2325 && cp <= 3386) {
125126
// Note: Avoid InCB state checking much as possible
126127
// Update InCB state only when continuing within a segment
127128
if (!consonant && catBefore === 0)
128129
consonant = isIndicConjunctConsonant(_hd);
129130

130131
if (consonant && catAfter === 3)
131132
linker = isIndicConjunctLinker(cp);
132-
else if (catAfter === 0)
133-
linker = false;
134133
}
135134

136135
cursor += cp <= BMP_MAX ? 1 : 2;

0 commit comments

Comments
 (0)