summaryrefslogtreecommitdiff
path: root/lib/workers
diff options
context:
space:
mode:
authorWu Cheng-Han2017-01-02 11:00:08 +0800
committerWu Cheng-Han2017-01-02 11:00:08 +0800
commit99628a5662b0abcb396e78aad0f631071d9d1f61 (patch)
tree5076cce460e4d5dcd9ebc9bbe441c856076055f5 /lib/workers
parentf6d8e3ab00370a78c0c788ad1e37a7ff77a53555 (diff)
Fix to not use diff_cleanupSemantic, bug report refer to https://code.google.com/p/google-diff-match-patch/issues/detail?id=67
Diffstat (limited to 'lib/workers')
-rw-r--r--lib/workers/dmpWorker.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/workers/dmpWorker.js b/lib/workers/dmpWorker.js
index 5b4b6aa2..8e69636e 100644
--- a/lib/workers/dmpWorker.js
+++ b/lib/workers/dmpWorker.js
@@ -57,7 +57,6 @@ process.on('message', function(data) {
function createPatch(lastDoc, currDoc) {
var ms_start = (new Date()).getTime();
var diff = dmp.diff_main(lastDoc, currDoc);
- dmp.diff_cleanupSemantic(diff);
var patch = dmp.patch_make(lastDoc, diff);
patch = dmp.patch_toText(patch);
var ms_end = (new Date()).getTime();