File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments