aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-15 08:13:20 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-15 08:13:20 +0200
commit3781b4c6935a64ec0a6e505b0b40d7a9c2ab3790 (patch)
tree39eeda3ef72e2e249f876a5aedc357433205ab02
parent6371fdd6eaf706a51369b096071ac2e5969f8f48 (diff)
downloaddwim-3781b4c6935a64ec0a6e505b0b40d7a9c2ab3790.tar.gz
Improve diff header handler
-rwxr-xr-xdwim2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwim b/dwim
index b5fc6b0..4ee2cf8 100755
--- a/dwim
+++ b/dwim
@@ -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{^/};