aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn <john@ankarstrom.se>2019-06-07 16:32:41 +0200
committerJohn <john@ankarstrom.se>2019-06-08 00:44:23 +0200
commit9d6275a487140ec7b950d529fd4d60d6a8ee2cdf (patch)
tree20650d632d95b178e84bcc47dce1fa8d4e2da945
parent3c0e1de3af367a33bbecf85ca089a91512c10231 (diff)
downloaddwim-9d6275a487140ec7b950d529fd4d60d6a8ee2cdf.tar.gz
allow trailing , or . in manpage(section) regex
-rwxr-xr-xdwim2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwim b/dwim
index f1da343..9e000aa 100755
--- a/dwim
+++ b/dwim
@@ -52,7 +52,7 @@ for ($phrase) {
# otherwise fall through
}
- if (/^([^\s]+)\(([^\s]+)\)/) {
+ if (/^([^\s]+)\(([^\s]+)\)[,.]?/) {
handle "{manpage}({section})";
run @LAUNCHER, "man", "$2", "$1";
}