Skip to content

Commit d3d1c81

Browse files
committed
v1.0.5
1 parent 6fef229 commit d3d1c81

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const hashRegex = /^From (\S*)/
22
const authorRegex = /^From:\s?([^<].*[^>])?\s+(<(.*)>)?/
3-
const fileNameRegex = /^diff --git "?a\/(\S*)"?\s*"?b\/(\S*)"?/
3+
const fileNameRegex = /^diff --git "?a\/(.*)"?\s*"?\sb\/(.*)"?/
44
const fileLinesRegex = /^@@ -([0-9]*),?\S* \+([0-9]*),?/
55
const similarityIndexRegex = /^similarity index /
66
const addedFileModeRegex = /^new file mode /

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "parse-git-patch",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"description": "Parse git patches with ease",
55
"main": "index.js",
66
"files": [

0 commit comments

Comments
 (0)