Too many parenthesis.
This commit is contained in:
parent
07a3a609d8
commit
7fd919a628
@ -143,12 +143,12 @@ sub read {
|
|||||||
$self -> {$section} -> {$1} = $2;
|
$self -> {$section} -> {$1} = $2;
|
||||||
|
|
||||||
# Handle attributes without quoted values - # or ; at any point will mark comments
|
# Handle attributes without quoted values - # or ; at any point will mark comments
|
||||||
} elsif(!$self -> {"inline_comments"} && $line =~ /^\s*((.*?\w))\s*=\s*(.+)$/ ) {
|
} elsif(!$self -> {"inline_comments"} && $line =~ /^\s*(.*?\w)\s*=\s*(.+)$/ ) {
|
||||||
my $key = $1;
|
my $key = $1;
|
||||||
$self -> {$section} -> {$key} = $2;
|
$self -> {$section} -> {$key} = $2;
|
||||||
$self -> {$section} -> {$key} =~ s/^\s*(.*?)\s*$/$1/;
|
$self -> {$section} -> {$key} =~ s/^\s*(.*?)\s*$/$1/;
|
||||||
|
|
||||||
} elsif($self -> {"inline_comments"} && $line =~ /^\s*((.*?\w))\s*=\s*([^;#]+)/ ) {
|
} elsif($self -> {"inline_comments"} && $line =~ /^\s*(.*?\w)\s*=\s*([^;#]+)/ ) {
|
||||||
my $key = $1;
|
my $key = $1;
|
||||||
$self -> {$section} -> {$key} = $2;
|
$self -> {$section} -> {$key} = $2;
|
||||||
$self -> {$section} -> {$key} =~ s/^\s*(.*?)\s*$/$1/;
|
$self -> {$section} -> {$key} =~ s/^\s*(.*?)\s*$/$1/;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user