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

pbot-vm: fix whitespace issue with "string"[n]

This commit is contained in:
Pragmatic Software 2022-04-04 17:17:57 -07:00
parent 8381fc7ad2
commit 4535881898

View File

@ -82,7 +82,7 @@ sub split_line ($line, %opts) {
}
if (defined $quote) {
if ($ch eq $quote and (not defined $next_ch or $next_ch =~ /[\s,:;})\].+=]/)) {
if ($ch eq $quote and (not defined $next_ch or $next_ch =~ /[\s,:;})\[\].+=]/)) {
# closing quote
$token .= $ch unless $opts{strip_quotes};
push @args, $token;