Skip to content

Commit 9aebd48

Browse files
committed
test
1 parent be2618f commit 9aebd48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/grapheme.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,10 @@ export function* graphemeSegments(input) {
121121
_catBegin = catAfter;
122122
_hd = cp;
123123

124-
} else if (cp >= 2325 && cp <= 3386) {
124+
} else if (_hd >= 2325) {
125125
// Note: Avoid InCB state checking much as possible
126126
// Update InCB state only when continuing within a segment
127-
if (catBefore === 0)
127+
if (!consonant && catBefore === 0)
128128
consonant = isIndicConjunctConsonant(_hd);
129129

130130
if (consonant && catAfter === 3)

0 commit comments

Comments
 (0)