We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3d1c81 commit cf75996Copy full SHA for cf75996
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*"?\sb\/(.*)"?/
+const fileNameRegex = /^diff --git "?a\/(.*)"?\s*"?b\/(.*)"?/
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.5",
+ "version": "1.0.6",
"description": "Parse git patches with ease",
"main": "index.js",
"files": [
0 commit comments