mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-01 23:45:53 +02:00
Reverse one hunk from empty-parameter fix
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
fe9e2ba28d
commit
d51ca478bd
@ -178,8 +178,7 @@ sub get_target_param( $ ) {
|
|||||||
my ( $target, $param ) = split '/', $_[0];
|
my ( $target, $param ) = split '/', $_[0];
|
||||||
|
|
||||||
unless ( defined $param ) {
|
unless ( defined $param ) {
|
||||||
$target =~ s/\(\)$//;
|
( $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