We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be2618f commit 9aebd48Copy full SHA for 9aebd48
src/grapheme.js
@@ -121,10 +121,10 @@ export function* graphemeSegments(input) {
121
_catBegin = catAfter;
122
_hd = cp;
123
124
- } else if (cp >= 2325 && cp <= 3386) {
+ } else if (_hd >= 2325) {
125
// Note: Avoid InCB state checking much as possible
126
// Update InCB state only when continuing within a segment
127
- if (catBefore === 0)
+ if (!consonant && catBefore === 0)
128
consonant = isIndicConjunctConsonant(_hd);
129
130
if (consonant && catAfter === 3)
0 commit comments