mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-24 15:18:53 +01:00
Simplify an RE
This commit is contained in:
parent
092f032b8e
commit
1e6b7c8130
@ -2892,7 +2892,7 @@ sub get_params() {
|
||||
fatal_error "Processing of $fn failed" if $?;
|
||||
|
||||
for ( @params ) {
|
||||
if ( /^(?:(.*?)=)(.*)$/ ) {
|
||||
if ( /^(.*?)=(.*)$/ ) {
|
||||
$params{$1} = $2 unless $1 eq '_';
|
||||
} else {
|
||||
assert(0);
|
||||
|
Loading…
Reference in New Issue
Block a user