author | Heiko Schlittermann (JUMPER) <hs@schlittermann.de> |
Thu, 09 Apr 2015 13:55:37 +0200 | |
changeset 97 | 50f2f0edcf25 |
parent 96 | a1d10088dc1d |
child 98 | 0bb3072d1c84 |
lib/DNS/Vi.pm | file | annotate | diff | comparison | revisions |
--- a/lib/DNS/Vi.pm Thu Apr 09 13:26:46 2015 +0200 +++ b/lib/DNS/Vi.pm Thu Apr 09 13:55:37 2015 +0200 @@ -31,7 +31,10 @@ $_ = ''; foreach (@lines) { - s{;.*$}{}; # strip trailing comments + # simplificated comment remover + # after the comment character no '"' is allowed! + s{^\s*;.*$}{}; # strip comment lines + s{\s*;[^"]*$}{}; # strip trailing comments state $line; if (my $range = /(.*)\(\s*$/ .. /(.*)\)\s*/) { $line .= defined $1 ? $1 : $_;