mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-11 04:07:03 +02:00
Don't recognize an empty param list
This commit is contained in:
parent
b7a9a48508
commit
014d0eb607
@ -135,7 +135,7 @@ sub get_target_param( $ ) {
|
|||||||
my ( $target, $param ) = split '/', $_[0];
|
my ( $target, $param ) = split '/', $_[0];
|
||||||
|
|
||||||
unless ( defined $param ) {
|
unless ( defined $param ) {
|
||||||
( $target, $param ) = ( $1, $2 ) if $target =~ /^(.*?)[(](.*)[)]$/;
|
( $target, $param ) = ( $1, $2 ) if $target =~ /^(.*?)[(](.+)[)]$/;
|
||||||
}
|
}
|
||||||
|
|
||||||
( $target, $param );
|
( $target, $param );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user