Skip to content

Commit

Permalink
[backend] BSStdRunner: fix optional array parameter handling
Browse files Browse the repository at this point in the history
Should have been in commit 4019365
  • Loading branch information
mlschroe committed Jun 10, 2020
1 parent 9de3b1d commit be708e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/BSStdRunner.pm
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ sub compile_dispatches {
for my $var (@vars) {
my ($arg, $quant) = (0, '');
$arg = 1 if $var =~ s/^\$//;
$quant = $1 if $var =~ s/([?])$//;
$quant = $1 if $var =~ s/([+*?])$//;
my $vartype = $var;
($var, $vartype) = ($1, $2) if $var =~ /^(.*):(.*)/;
push @{$dis->{'must'}}, $var unless $quant eq '?' || $quant eq '*';
Expand Down

0 comments on commit be708e2

Please sign in to comment.