3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-19 10:29:30 +01:00

Factoids: allow empty %() items without needing quotes

This commit is contained in:
Pragmatic Software 2020-06-19 19:58:52 -07:00
parent 7e2caa58af
commit 2d47802cff

View File

@ -553,7 +553,7 @@ sub make_list {
}
my @list;
foreach my $item (split /\s*(?<!\\)\|\s*/, $extracted) {
foreach my $item (split /\s*(?<!\\)\|\s*/, $extracted, -1) {
$item =~ s/^\s+|\s+$//g;
$item =~ s/\\\|/|/g;