8000 Fix same emoji bug for forward iteration. All tests pass. · cbarrick/unicode-segmentation@6ff3993 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6ff3993

Browse files
Manishearthmbrubeck
authored andcommitted
Fix same emoji bug for forward iteration. All tests pass.
1 parent 41b11e6 commit 6ff3993

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/word.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,9 @@ impl<'a> Iterator for UWordBounds<'a> {
211211
break
212212
}
213213
Zwj(false) => match cat { // rule WB3c
214-
wd::WC_Glue_After_Zwj | wd::WC_E_Base_GAZ => {
214+
wd::WC_Glue_After_Zwj => continue,
215+
wd::WC_E_Base_GAZ => {
216+
state = Emoji;
215217
continue;
216218
},
217219
_ => {

0 commit comments

Comments
 (0)
0