Extra tweaks due to feedback from kaiwangchen: ; starts comments if at the start of a line

This commit is contained in:
Brian Fraser
2012-11-02 01:58:12 -03:00
parent fdb81f763d
commit 5fd150de31
3 changed files with 11 additions and 1 deletions

View File

@@ -310,7 +310,7 @@ sub parse_option_file {
# Parse the "var=val" lines.
my ($config, $dupes) = _parse_varvals(
map { $_ =~ m/^([^=]+)(?:=(.*))?$/ }
grep { $_ !~ m/^\s*#/ } # no # comment lines
grep { $_ !~ m/^\s*[#;]/ } # no # comment lines
split("\n", $mysqld_section)
);