Allow portability of config files between Unix and Windows
This commit is contained in:
parent
811e22a431
commit
5bc3f2cfa5
1 changed files with 2 additions and 0 deletions
|
@ -321,8 +321,10 @@ sub load {
|
|||
my $class = shift;
|
||||
my ($file) = @_;
|
||||
|
||||
local $/ = "\n";
|
||||
open my $fh, '<', $file;
|
||||
while (<$fh>) {
|
||||
s/\R+$//;
|
||||
next if /^\s+/;
|
||||
next if /^$/;
|
||||
next if /^\s*#/;
|
||||
|
|
Loading…
Reference in a new issue