Make .ini parser more tolerant to whitespace
This commit is contained in:
parent
30b0869595
commit
06385221a3
1 changed files with 1 additions and 1 deletions
|
@ -424,7 +424,7 @@ sub read_ini {
|
|||
$category = $1;
|
||||
next;
|
||||
}
|
||||
/^(\w+) = (.*)/ or die "Unreadable configuration file (invalid data at line $.)\n";
|
||||
/^(\w+) *= *(.*)/ or die "Unreadable configuration file (invalid data at line $.)\n";
|
||||
$ini->{$category}{$1} = $2;
|
||||
}
|
||||
close $fh;
|
||||
|
|
Loading…
Reference in a new issue