Replaced split with a single regex

This commit is contained in:
Andrew Johnson
2014-09-25 16:24:23 -05:00
parent 7a3e52b647
commit c078a9cef8

View File

@@ -49,9 +49,9 @@ expandRelease(\%vars);
$vars{'ARCH'} = $opt_a if $opt_a;
while ($_ = shift @opt_D) {
my ($var, $val) = split(/=/, $_, 2);
$vars{$var} = $val;
print "$var = $val\n" if $opt_d;
m/^ (\w+) \s* = \s* (.*) $/x;
$vars{$1} = $2;
print "$1 = $2\n" if $opt_d;
}
# Do it!