Skip to content

Commit

Permalink
Fixed bug with config reading - valid values with '#' get truncated.
Browse files Browse the repository at this point in the history
  • Loading branch information
bartzy authored and dormando committed Jan 28, 2012
1 parent e656433 commit 851775e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mogstats
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ foreach my $fn (reverse @configs) {
open FILE, "<$fn"
or die "unable to open $fn: $!\n";
while (<FILE>) {
s/\#.*//;
s/\s+#.*//;
next unless m/^\s*(\w+)\s*=\s*(.+?)\s*$/;
$opts{$1} = $2 unless ( defined $opts{$1} );
}
Expand Down

0 comments on commit 851775e

Please sign in to comment.