diff2html
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "diff2html", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"homepage": "http://rtfpessoa.github.io/diff2html/", | ||
@@ -5,0 +5,0 @@ "description": "Fast Diff to colorized HTML", |
@@ -122,2 +122,25 @@ /* | ||
var diffLines = diffInput.split('\n'); | ||
/* Diff */ | ||
var oldMode = /^old mode (\d{6})/; | ||
var newMode = /^new mode (\d{6})/; | ||
var deletedFileMode = /^deleted file mode (\d{6})/; | ||
var newFileMode = /^new file mode (\d{6})/; | ||
var copyFrom = /^copy from (.+)/; | ||
var copyTo = /^copy to (.+)/; | ||
var renameFrom = /^rename from (.+)/; | ||
var renameTo = /^rename to (.+)/; | ||
var similarityIndex = /^similarity index (\d+)%/; | ||
var dissimilarityIndex = /^dissimilarity index (\d+)%/; | ||
var index = /^index ([0-9a-z]+)..([0-9a-z]+) (\d{6})?/; | ||
/* Combined Diff */ | ||
var combinedIndex = /^index ([0-9a-z]+),([0-9a-z]+)..([0-9a-z]+)/; | ||
var combinedMode = /^mode (\d{6}),(\d{6})..(\d{6})/; | ||
var combinedNewFile = /^new file mode (\d{6})/; | ||
var combinedDeletedFile = /^deleted file mode (\d{6}),(\d{6})/; | ||
diffLines.forEach(function(line) { | ||
@@ -131,24 +154,2 @@ // Unmerged paths, and possibly other non-diffable files | ||
/* Diff */ | ||
var oldMode = /^old mode (\d{6})/; | ||
var newMode = /^new mode (\d{6})/; | ||
var deletedFileMode = /^deleted file mode (\d{6})/; | ||
var newFileMode = /^new file mode (\d{6})/; | ||
var copyFrom = /^copy from (.+)/; | ||
var copyTo = /^copy to (.+)/; | ||
var renameFrom = /^rename from (.+)/; | ||
var renameTo = /^rename to (.+)/; | ||
var similarityIndex = /^similarity index (\d+)%/; | ||
var dissimilarityIndex = /^dissimilarity index (\d+)%/; | ||
var index = /^index ([0-9a-z]+)..([0-9a-z]+) (\d{6})?/; | ||
/* Combined Diff */ | ||
var combinedIndex = /^index ([0-9a-z]+),([0-9a-z]+)..([0-9a-z]+)/; | ||
var combinedMode = /^mode (\d{6}),(\d{6})..(\d{6})/; | ||
var combinedNewFile = /^new file mode (\d{6})/; | ||
var combinedDeletedFile = /^deleted file mode (\d{6}),(\d{6})/; | ||
var values = []; | ||
@@ -155,0 +156,0 @@ if (utils.startsWith(line, 'diff')) { |
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
34654