diff options
author | John Ankarström <john@ankarstrom.se> | 2021-06-15 08:13:20 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-06-15 08:13:20 +0200 |
commit | 3781b4c6935a64ec0a6e505b0b40d7a9c2ab3790 (patch) | |
tree | 39eeda3ef72e2e249f876a5aedc357433205ab02 | |
parent | 6371fdd6eaf706a51369b096071ac2e5969f8f48 (diff) | |
download | dwim-3781b4c6935a64ec0a6e505b0b40d7a9c2ab3790.tar.gz |
Improve diff header handler
-rwxr-xr-x | dwim | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -98,7 +98,7 @@ for ($phrase) { fail 'header file not found'; } - if (/(?:\+\+\+|---) (\S+) .*?$@@ -(\d+)/ms) { + if (/(?:\+\+\+|---) (\S+) .*$@@ -(\d+)/ms) { handle 'diff header'; my ($p, $l) = ($1, $2); $p = path($p)."/$p" if not $p =~ m{^/}; |