Make .ini parser more tolerant to whitespace

This commit is contained in:
Alessandro Ranellucci 2014-11-06 21:08:55 +01:00
parent 30b0869595
commit 06385221a3

View file

@ -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;