mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-10 03:22:25 +00:00
Make .ini parser more tolerant to whitespace
This commit is contained in:
1 parent
30b0869595
commit
06385221a3
1 file changed
+1
-1
@@ -424,7 +424,7 @@ sub read_ini {
|
|||||||
$category = $1;
|
$category = $1;
|
||||||
next;
|
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;
|
$ini->{$category}{$1} = $2;
|
||||||
}
|
}
|
||||||
close $fh;
|
close $fh;
|
||||||
|
|||||||
Reference in new issue
Block a user