From f004ab49d0682c83f8a0a6323a29aa81a143b3d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 29 Jun 2021 19:06:32 +0200 Subject: Handle optional colon after manual.section --- dwim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dwim b/dwim index 429ad14..552ddf2 100755 --- a/dwim +++ b/dwim @@ -67,7 +67,7 @@ for ($phrase) { run @MAN_VIEWER, $2, $1; } - if (/^([-_A-Za-z]+)\.([1-9])$/) { + if (/^([-_A-Za-z]+)\.([1-9]):?$/) { handle 'manual.section'; my $p = path "$1.$2"; run @MAN_VIEWER, $p if -e $p; -- cgit v1.2.3