Skip to content

Commit f48745b

Browse files
committed
fix consonant cluster breaks with spaces
1 parent f5d3453 commit f48745b

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/grapheme.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ export function* graphemeSegments(input) {
150150

151151
// Reset segment state
152152
emoji = false;
153+
consonant = false;
153154
riCount = 0;
154155
index = cursor;
155156
_catBegin = catAfter;

test/grapheme.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ test('counterexamples', async t => {
307307
' जा',
308308
' କା',
309309
' ଶ୍ୟା',
310+
'ക് വ',
310311
];
311312

312313
for (let counter of counterExamples) {

0 commit comments

Comments
 (0)