mirror of
git://git.psyced.org/git/psyced
synced 2024-08-15 03:25:10 +00:00
INI parser fix: allow for greedy whitespace chompage
This commit is contained in:
parent
16688e13c1
commit
748f22c12c
1 changed files with 1 additions and 4 deletions
|
@ -82,10 +82,7 @@ sub say {
|
|||
next if /^;/;
|
||||
next if /^\s*$/;
|
||||
$f = $1, next if /^\[(\w+)\]\s*$/;
|
||||
# Room name 'ornia ' is not permitted.
|
||||
# isn't this stripping trailing whitespace properly?
|
||||
# should it read \S.+\S ? or at least .+\S ?
|
||||
$c{"$f$1"} = $2, next if /^(\w+)\s*=\s*(.+)\s*$/;
|
||||
$c{"$f$1"} = $2, next if /^(\w+)\s*=\s*(.+?)\s*$/;
|
||||
die "cannot parse line $. in $conf:\n\t$_\n";
|
||||
}
|
||||
close C;
|
||||
|
|
Loading…
Reference in a new issue