Skip to content

Commit

Permalink
fix: incorrect regular expression matching diffcmd (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
jingfelix authored Nov 16, 2024
1 parent f274445 commit dadb500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/whatthepatch/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# .+? was previously [^:\t\n\r\f\v]+

# general diff regex
diffcmd_header = re.compile("^diff.* (.+) (.+)$")
diffcmd_header = re.compile("^diff .* (.+) (.+)$")
unified_header_index = re.compile("^Index: (.+)$")
unified_header_old_line = re.compile(r"^--- " + file_timestamp_str + "$")
unified_header_new_line = re.compile(r"^\+\+\+ " + file_timestamp_str + "$")
Expand Down

0 comments on commit dadb500

Please sign in to comment.