Closed KentoMoriwaki closed 1 year ago
@dmonad Cloud you take a look?
I've implemented another version: more performant and simpler, but there is a trade-off. #46 You can choose which one you prefer.
same question!
This worked for me, please merge into the master branch! please! ! ! 🙏
Closed in favor of #46
fix https://github.com/yjs/yjs/issues/303
Current diff algorithm may produce invalid combinations of surrogate pair. To avoid this, we can use
Array.from
to calculate the length and index in safe.This changes may cause performance degradation, so we have an option to implement this in another function. IMO it is better to be able to handle surrogate pairs correctly in all situations.