Comparing version 1.0.6 to 1.0.7
@@ -156,3 +156,4 @@ /* See LICENSE file for terms of use */ | ||
var WordDiff = new Diff(true); | ||
WordDiff.tokenize = function(value) { | ||
var WordWithSpaceDiff = new Diff(); | ||
WordDiff.tokenize = WordWithSpaceDiff.tokenize = function(value) { | ||
return removeEmpty(value.split(/(\s+|\b)/)); | ||
@@ -176,2 +177,3 @@ }; | ||
diffWords: function(oldStr, newStr) { return WordDiff.diff(oldStr, newStr); }, | ||
diffWordsWithSpace: function(oldStr, newStr) { return WordWithSpaceDiff.diff(oldStr, newStr); }, | ||
diffLines: function(oldStr, newStr) { return LineDiff.diff(oldStr, newStr); }, | ||
@@ -178,0 +180,0 @@ |
{ | ||
"name": "diff", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "A javascript text diff implementation.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16674
313