diff options
author | John <john@ankarstrom.se> | 2019-06-07 16:32:18 +0200 |
---|---|---|
committer | John <john@ankarstrom.se> | 2019-06-08 00:44:14 +0200 |
commit | 3c0e1de3af367a33bbecf85ca089a91512c10231 (patch) | |
tree | 36ee1a310bd74420c3ec4ab5bf008ea70180dc48 | |
parent | 940a74983280b1a00bbdfb67001ad21087086902 (diff) | |
download | dwim-3c0e1de3af367a33bbecf85ca089a91512c10231.tar.gz |
allow more trailing characters in file:line regex
-rwxr-xr-x | dwim | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -32,7 +32,7 @@ for ($phrase) { run @MAILER, "$1" } - if (/^(.+):(\d+)(:.*?)?$/) { + if (/^(.+):(\d+).*?$/) { handle "{file}:{line} (like grep -n)"; my $p = path $1; run @LAUNCHER, @EDITOR, "-c", ":$2", "$p" |