mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-23 04:19:27 +01:00
Factoids: allow empty %() items without needing quotes
This commit is contained in:
parent
7e2caa58af
commit
2d47802cff
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user