CADbloke / google-diff-match-patch

Automatically exported from code.google.com/p/google-diff-match-patch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JS Patches are not consistent with C# patches

GoogleCodeExporter opened this issue · comments

Doing this in JS 

diff_match_patch.prototype.patch_make("Welcome to Orchard!", "Welcome to 
Orchard!l");

produces this...

[{\"diffs\":[[0,\"Welcome to Orchard!\"],[1,\"kk\"],[0,\"Welcome to 
Orchard!\"]],\"start1\":0,\"start2\":0,\"length1\":38,\"length2\":40}]


Where as in C#, it will produces a different set of patches, this causes errors 
when applying those patches in C#

Original issue reported on code.google.com by jetski5...@gmail.com on 10 Feb 2013 at 11:44