aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn <john@ankarstrom.se>2019-06-07 16:32:18 +0200
committerJohn <john@ankarstrom.se>2019-06-08 00:44:14 +0200
commit3c0e1de3af367a33bbecf85ca089a91512c10231 (patch)
tree36ee1a310bd74420c3ec4ab5bf008ea70180dc48
parent940a74983280b1a00bbdfb67001ad21087086902 (diff)
downloaddwim-3c0e1de3af367a33bbecf85ca089a91512c10231.tar.gz
allow more trailing characters in file:line regex
-rwxr-xr-xdwim2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwim b/dwim
index b8957fb..f1da343 100755
--- a/dwim
+++ b/dwim
@@ -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"