From 453588189833c3d9e2ed3c37a6b993b8c9092b8e Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Mon, 4 Apr 2022 17:17:57 -0700 Subject: [PATCH] pbot-vm: fix whitespace issue with `"string"[n]` --- applets/pbot-vm/host/lib/SplitLine.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applets/pbot-vm/host/lib/SplitLine.pm b/applets/pbot-vm/host/lib/SplitLine.pm index 832d537d..b2ad2d63 100644 --- a/applets/pbot-vm/host/lib/SplitLine.pm +++ b/applets/pbot-vm/host/lib/SplitLine.pm @@ -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;