diff options
author | John <john@ankarstrom.se> | 2019-06-07 16:32:41 +0200 |
---|---|---|
committer | John <john@ankarstrom.se> | 2019-06-08 00:44:23 +0200 |
commit | 9d6275a487140ec7b950d529fd4d60d6a8ee2cdf (patch) | |
tree | 20650d632d95b178e84bcc47dce1fa8d4e2da945 | |
parent | 3c0e1de3af367a33bbecf85ca089a91512c10231 (diff) | |
download | dwim-9d6275a487140ec7b950d529fd4d60d6a8ee2cdf.tar.gz |
allow trailing , or . in manpage(section) regex
-rwxr-xr-x | dwim | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -52,7 +52,7 @@ for ($phrase) { # otherwise fall through } - if (/^([^\s]+)\(([^\s]+)\)/) { + if (/^([^\s]+)\(([^\s]+)\)[,.]?/) { handle "{manpage}({section})"; run @LAUNCHER, "man", "$2", "$1"; } |