From 28f102d88ca2dd210c94b901cf9e4736585aead0 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Wed, 29 Jan 2020 19:32:45 -0800 Subject: [PATCH] Plugins/Wttr: fix -all not handling "sunrise|sunset" properly --- Plugins/Wttr.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/Wttr.pm b/Plugins/Wttr.pm index 28cf30ed..08f6963b 100644 --- a/Plugins/Wttr.pm +++ b/Plugins/Wttr.pm @@ -102,7 +102,7 @@ sub wttrcmd { if (defined $options{all}) { %options = (); - map { $options{$_} = 1 } @wttr_options; + map { my $opt = $_; $opt =~ s/\|.*$//; $options{$opt} = 1 } @wttr_options; delete $options{all}; delete $options{default}; }