diff --git a/lib/diff.js b/lib/diff.js index ce3bf1ac..b0e44ecf 100644 --- a/lib/diff.js +++ b/lib/diff.js @@ -12,7 +12,7 @@ this.applyPatch = function(oldText, patch) { var patches = dmp.patch_fromText(patch), - results = dmp.patch_apply(patches, oldText); + results = dmp.patch_apply(patches, oldText)[0]; return results; };