Hello, thanks for this useful library!
I'd like to report a bug that I encountered while using it.
json0diff(['Hello'], ['π€Helloπ€'], DiffMatchPatch, json1, textUnicode);
// Outputs => [0,{"es":["π€",6,"π€"]}]
When this is passed to the apply method of json1, an error message Error: The op is too long for this document will be displayed.
It seems that text-unicode treats emoji as a single character.
changing the index from 6 to 5 works fine.
[0,{"es":["π€",5,"π€"]}]
If it is possible, could you please fix it?