Craig A. Berry [Fri, 24 Nov 2006 04:45:30 +0000 (04:45 +0000)]
p4raw-id: //depot/perl@29370
sub {
return if /^\#/ || /^\s*$/;
if ($cfg eq 'configure.com') {
- s/\s*!.*$//; # remove trailing comments
+ s/(\s*!.*|\s*)$//; # remove trailing comments or whitespace
return if ! /^\$\s+WC "(\w+)='(.*)'"$/;
}
# foo='bar'