parse-diff
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -110,3 +110,3 @@ var defaultToWhiteSpace, escapeRegExp, ltrim, makeString, parseFile, parseFileFallback, trimLeft; | ||
}; | ||
schema = [[/^diff\s/, start], [/^new file mode \d+$/, new_file], [/^deleted file mode \d+$/, deleted_file], [/^index\s[\da-zA-Z]+\.\.[\da-zA-Z]+(\s(\d+))?$/, index], [/^---\s/, from_file], [/^\+\+\+\s/, to_file], [/^@@\s+\-(\d+),?(\d+)?\s+\+(\d+),?(\d+)?\s@@/, chunk], [/^-/, del], [/^\+/, add]]; | ||
schema = [[/^\s+/, normal], [/^diff\s/, start], [/^new file mode \d+$/, new_file], [/^deleted file mode \d+$/, deleted_file], [/^index\s[\da-zA-Z]+\.\.[\da-zA-Z]+(\s(\d+))?$/, index], [/^---\s/, from_file], [/^\+\+\+\s/, to_file], [/^@@\s+\-(\d+),?(\d+)?\s+\+(\d+),?(\d+)?\s@@/, chunk], [/^-/, del], [/^\+/, add]]; | ||
parse = function(line) { | ||
@@ -126,5 +126,3 @@ var j, len, m, p; | ||
line = lines[j]; | ||
if (!parse(line)) { | ||
normal(line); | ||
} | ||
parse(line); | ||
} | ||
@@ -131,0 +129,0 @@ return files; |
{ | ||
"name": "parse-diff", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Unified diff parser", | ||
@@ -20,6 +20,8 @@ "author": "Sergey Todyshev <stodyshev@gmail.com>", | ||
"Scott Christopherson <scott@scott-christopherson.com>", | ||
"Quest <quest@lysator.liu.se>" | ||
"Quest <quest@lysator.liu.se>", | ||
"Sung Won Cho <mikeswcho@gmail.com>", | ||
"just-boris <just-boris@yandex-team.ru>" | ||
], | ||
"devDependencies": { | ||
"coffee-script": "~1.9", | ||
"coffee-script": "~1.10", | ||
"grunt": "~0.4.5", | ||
@@ -30,3 +32,3 @@ "grunt-contrib-jshint": "~0.11", | ||
"grunt-npm": "~0.0.2", | ||
"grunt-bump": "~0.3.2", | ||
"grunt-bump": "~0.6.0", | ||
"grunt-auto-release": "~0.0.6", | ||
@@ -33,0 +35,0 @@ "grunt-cli": "~0.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
20486
182