We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f5269e commit 6fef229Copy full SHA for 6fef229
2 files changed
index.js
@@ -1,6 +1,6 @@
1
const hashRegex = /^From (\S*)/
2
const authorRegex = /^From:\s?([^<].*[^>])?\s+(<(.*)>)?/
3
-const fileNameRegex = /^diff --git "?a\/(\S*)"? "?b\/(\S*)"?$/
+const fileNameRegex = /^diff --git "?a\/(\S*)"?\s*"?b\/(\S*)"?/
4
const fileLinesRegex = /^@@ -([0-9]*),?\S* \+([0-9]*),?/
5
const similarityIndexRegex = /^similarity index /
6
const addedFileModeRegex = /^new file mode /
package.json
{
"name": "parse-git-patch",
- "version": "1.0.3",
+ "version": "1.0.4",
"description": "Parse git patches with ease",
"main": "index.js",
"files": [
0 commit comments