v2.12.0
This commit is contained in:
parent
9a89f31b9c
commit
5a764deda2
3 changed files with 5 additions and 4 deletions
5
dist/diff2html.js
vendored
5
dist/diff2html.js
vendored
|
|
@ -3516,6 +3516,7 @@ process.umask = function() { return 0; };
|
|||
inputFormat: 'diff',
|
||||
outputFormat: 'line-by-line',
|
||||
showFiles: false,
|
||||
diffStyle: 'word',
|
||||
matching: 'none',
|
||||
matchWordsThreshold: 0.25,
|
||||
matchingMaxComparisons: 2500,
|
||||
|
|
@ -4191,7 +4192,7 @@ process.umask = function() { return 0; };
|
|||
}
|
||||
|
||||
var diff;
|
||||
if (config.charByChar) {
|
||||
if (config.diffStyle === 'char') {
|
||||
diff = jsDiff.diffChars(unprefixedLine1, unprefixedLine2);
|
||||
} else {
|
||||
diff = jsDiff.diffWordsWithSpace(unprefixedLine1, unprefixedLine2);
|
||||
|
|
@ -4200,7 +4201,7 @@ process.umask = function() { return 0; };
|
|||
var highlightedLine = '';
|
||||
|
||||
var changedWords = [];
|
||||
if (!config.charByChar && config.matching === 'words') {
|
||||
if (config.diffStyle === 'word' && config.matching === 'words') {
|
||||
var treshold = 0.25;
|
||||
|
||||
if (typeof (config.matchWordsThreshold) !== 'undefined') {
|
||||
|
|
|
|||
2
dist/diff2html.min.js
vendored
2
dist/diff2html.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "diff2html",
|
||||
"version": "2.11.3",
|
||||
"version": "2.12.0",
|
||||
"homepage": "https://diff2html.xyz",
|
||||
"description": "Fast Diff to colorized HTML",
|
||||
"keywords": [
|
||||
|
|
|
|||
Loading…
Reference in a new issue