Release version 2.0.1

This commit is contained in:
Rodrigo Fernandes 2016-07-12 18:46:45 +01:00
parent e9e3d928ea
commit 3d7c48f17c
4 changed files with 13 additions and 11 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "diff2html", "name": "diff2html",
"version": "2.0.0", "version": "2.0.1",
"homepage": "http://rtfpessoa.github.io/diff2html/", "homepage": "http://rtfpessoa.github.io/diff2html/",
"description": "Fast Diff to colorized HTML", "description": "Fast Diff to colorized HTML",
"keywords": [ "keywords": [

15
dist/diff2html.js vendored
View file

@ -2363,6 +2363,11 @@ process.umask = function() { return 0; };
var oldLine2 = null; // Used for combined diff var oldLine2 = null; // Used for combined diff
var newLine = null; var newLine = null;
/* Diff Header */
var oldFileNameHeader = '--- ';
var newFileNameHeader = '+++ ';
var hunkHeaderPrefix = '@@';
/* Add previous block(if exists) before start a new file */ /* Add previous block(if exists) before start a new file */
var saveBlock = function() { var saveBlock = function() {
if (currentBlock) { if (currentBlock) {
@ -2422,7 +2427,10 @@ process.umask = function() { return 0; };
oldLine2 = values[2]; oldLine2 = values[2];
newLine = values[3]; newLine = values[3];
} else { } else {
console.error('Failed to parse lines, starting in 0!'); if (utils.startsWith(line, hunkHeaderPrefix)) {
console.error('Failed to parse lines, starting in 0!');
}
oldLine = 0; oldLine = 0;
newLine = 0; newLine = 0;
currentFile.isCombined = false; currentFile.isCombined = false;
@ -2475,11 +2483,6 @@ process.umask = function() { return 0; };
.replace(/\r\n?/g, '\n') .replace(/\r\n?/g, '\n')
.split('\n'); .split('\n');
/* Diff Header */
var oldFileNameHeader = '--- ';
var newFileNameHeader = '+++ ';
var hunkHeaderPrefix = '@@';
/* Diff */ /* Diff */
var oldMode = /^old mode (\d{6})/; var oldMode = /^old mode (\d{6})/;
var newMode = /^new mode (\d{6})/; var newMode = /^new mode (\d{6})/;

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
{ {
"name": "diff2html", "name": "diff2html",
"version": "2.0.0", "version": "2.0.1",
"homepage": "http://rtfpessoa.github.io/diff2html/", "homepage": "http://rtfpessoa.github.io/diff2html/",
"description": "Fast Diff to colorized HTML", "description": "Fast Diff to colorized HTML",
"keywords": [ "keywords": [