Names can end in non-alphanumerics.
This commit is contained in:
parent
c1c9a153a2
commit
c4dda13372
@ -139,16 +139,16 @@ sub read {
|
|||||||
$section = $1;
|
$section = $1;
|
||||||
|
|
||||||
# Attribues with quoted values. value can contain anything other than "
|
# Attribues with quoted values. value can contain anything other than "
|
||||||
} elsif($line =~ /^\s*(.*?\w)\s*=\s*\"([^\"]+)\"/ ) {
|
} elsif($line =~ /^\s*(.*?)\s*=\s*\"([^\"]+)\"/ ) {
|
||||||
$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*(.*?)\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*(.*?)\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