Skip to content

Conversation

alexander-riss
Copy link

@alexander-riss alexander-riss commented Jan 8, 2024

the character diff currently does not handle high utf8 like emoji as their length is not calculated correctly. instead of breaking the old characterDiff method we now have a glyphDiff method for this purpose as it may perform worse than the existing method.
this PR extends the test suite and passes with 100% coverage

@ExplodingCabbage
Copy link
Collaborator

I figured I'd rather do a breaking release making this change in diffChars (change already done via #500). Diffing UTF-16 code units is a pretty arbitrary and non-useful thing to do and I think it's better to simply have a single diffChars method that does the useful thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants