We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f274445 commit dadb500Copy full SHA for dadb500
src/whatthepatch/patch.py
@@ -19,7 +19,7 @@
19
# .+? was previously [^:\t\n\r\f\v]+
20
21
# general diff regex
22
-diffcmd_header = re.compile("^diff.* (.+) (.+)$")
+diffcmd_header = re.compile("^diff .* (.+) (.+)$")
23
unified_header_index = re.compile("^Index: (.+)$")
24
unified_header_old_line = re.compile(r"^--- " + file_timestamp_str + "$")
25
unified_header_new_line = re.compile(r"^\+\+\+ " + file_timestamp_str + "$")
0 commit comments