Usage importDiffMatchPatchfrom'diff-match-patch'; constdmp=newDiffMatchPatch(); constdiff=dmp.diff_main('dogs bark','cats bark'); //You can also use the following properties: DiffMatchPatch.DIFF_DELETE=-1; DiffMatchPatch.DIFF_INSERT=1; ...
Usage importDiffMatchPatchfrom'diff-match-patch';constdmp=newDiffMatchPatch();constdiff=dmp.diff_main('dogs bark','cats bark');// You can also use the following properties:DiffMatchPatch.DIFF_DELETE=-1;DiffMatchPatch.DIFF_INSERT=1;DiffMatchPatch.DIFF_EQUAL=0; ...
When added as a test this case does indeed fail, but it appears to fail inside bisect so I'll have to review that usage on another day when I can get my focus into it. I came to this hypothesis last night while trying to understand the implications of what I'm calling "Unicode ...