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 72d896f commit 2ced48aCopy full SHA for 2ced48a
src/unicode/grapheme_segmenter.h
@@ -138,8 +138,7 @@ class grapheme_segmenter
138
// GB12/GB13: Do not break within emoji flag sequences.
139
// That is, do not break between regional indicator (RI) symbols
140
// if there is an odd number of RI characters before the break point.
141
- if (A == Grapheme_Cluster_Break::Regional_Indicator
142
- || B == Grapheme_Cluster_Break::Regional_Indicator)
+ if (A == Grapheme_Cluster_Break::Regional_Indicator && A == B)
143
return false;
144
145
// GB999: Otherwise, break everywhere.
0 commit comments