Closed fmatzy closed 2 years ago
Good catch! Thank you for providing a solution, too. Due to #11, the test case code has changed somewhat. Do you want to update your PR to resolve the merge conflicts? Or do you want me to make the changes? (Both fine with me.)
@rivo OK, I've updated my PR to resolve the merge conflicts.
Thanks!
When a control character is followed by a emoji, such as
\tš³ļøāš
, the state seems to be broken at the transition to the next, causing the emoji grapheme to split.https://play.golang.org/p/jUX-VcrwFnm
This is due to the loss of state of the emoji when applying the rule on transition from the control character to the next character.
In this PR, only the boundary condition uses the lower rule number, and the state is not overwritten.