mirror of
https://codeberg.org/scip/Config-General.git
synced 2025-12-17 04:31:00 +01:00
1.21: - lines with just one "#" became an option array named
"#" with empty entries, very weird, fixed git-svn-id: http://dev.catalyst.perl.org/repos/Config-General/trunk@9 be1acefe-a474-0410-9a34-9b3221f2030f
This commit is contained in:
@@ -109,6 +109,7 @@ sub _open {
|
||||
# patch by "Manuel Valente" <manuel@ripe.net>:
|
||||
if (!$hierend) {
|
||||
s/(?<!\\)#.+$//; # Remove comments
|
||||
next if /^#/; # Remove lines beginning with "#"
|
||||
next if /^\s*$/; # Skip empty lines
|
||||
s/\\#/#/g; # remove the \ char in front of masked "#"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user