User:Cacycle/diff.js: Difference between revisions

Content deleted Content added
1.0.19 (September 14, 2014) paragraph split after newline, bubbling to sliding
1.0.20 (September 14, 2014), paragraph split after double newline, sentence split after newline, bubbling to sliding
Line 3:
// ==UserScript==
// @name wDiff
// @version 1.0.1920
// @date September 14, 2014
// @description improved word-based diff library with block move detection
Line 143:
wDiff.regExpSplit = {
 
// paragraphs: after newlinedouble newlines
paragraph: /(.|\n)*?\n{2,}/g,
 
// sentences: after newlines and .spaces
sentence: /.*?(\.\s+|\n)/g,
 
// inline chunks