Skip to content
This repository was archived by the owner on Aug 5, 2024. It is now read-only.

Commit a5f35ab

Browse files
committed
Handle cases where we delete characters
In the previous iteration of this patch we were only properly handling cases where a new surrogate pair was inserted in between two existing pairs whose high surrogates all matched. Unfortunately when swapping characters or performing any edits where we delete a surrogate pair the patch failed because it only carried the trailing high surrogate over to the next group instead of distributing it to any insert _and_ delete groups following an equality group. In this patch I've updated the JavaScript library to properly distribute the trailing high surrogate.
1 parent ea303f2 commit a5f35ab

File tree

3 files changed

+109
-59
lines changed

3 files changed

+109
-59
lines changed

0 commit comments

Comments
 (0)