aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-29 19:06:32 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-29 19:06:32 +0200
commitf004ab49d0682c83f8a0a6323a29aa81a143b3d9 (patch)
tree04ba83590bd1699eb6ba4770ca07e39e0e0c10f5
parent15400ceb3d746eb90d47c2ca82e48a9a0264ccfd (diff)
downloaddwim-f004ab49d0682c83f8a0a6323a29aa81a143b3d9.tar.gz
Handle optional colon after manual.section
-rwxr-xr-xdwim2
1 files changed, 1 insertions, 1 deletions
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;