dmsnell / diff-match-patch

Diff Match Patch is a high-performance library in multiple languages that manipulates plain text.
Apache License 2.0
29 stars 6 forks source link

Fix surrogate pairs splitting in toText()/fromText() #1

Open michal-kurz opened 2 years ago

dmsnell commented 2 years ago

@michal-kurz I left some feedback in one of your merged PRs about checking for string input on isHighSurrogate and isLowSurrogate. I'll wait to do more here until giving you a chance to think that over. I wish I had more focus time to dedicate to this and so I hope I'm being helpful enough in the meantime.