From 9d6275a487140ec7b950d529fd4d60d6a8ee2cdf Mon Sep 17 00:00:00 2001 From: John Date: Fri, 7 Jun 2019 16:32:41 +0200 Subject: allow trailing , or . in manpage(section) regex --- dwim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; } -- cgit v1.2.3