diff --git a/utf8proc.c b/utf8proc.c index 6591976..450f7f9 100644 --- a/utf8proc.c +++ b/utf8proc.c @@ -310,6 +310,8 @@ static utf8proc_bool grapheme_break_extended(int lbc, int tbc, utf8proc_int32_t else *state = tbc; } + else if (*state == UTF8PROC_BOUNDCLASS_EXTEND && tbc == UTF8PROC_BOUNDCLASS_ZWJ) ++ *state = UTF8PROC_BOUNDCLASS_E_ZWG; else *state = tbc; }