- Ignore directives without values.
# A regression test "framework" for Privoxy. For documentation see:
# perldoc privoxy-regression-test.pl
#
-# $Id: privoxy-regression-test.pl,v 1.118 2008/03/19 16:15:45 fk Exp $
+# $Id: privoxy-regression-test.pl,v 1.119 2008/03/21 12:56:20 fk Exp $
#
# Wish list:
#
s@&@&@g;
# Tokenize
- if (/^\#\s*([^=:]*?)\s*[=]\s*(.*?)\s*$/) {
+ if (/^\#\s*([^=:]*?)\s*[=]\s*(.+?)\s*$/) {
$token = $1;
- $token =~ tr/[A-Z]/[a-z]/;
$value = $2;
+ $token =~ s@\s\s+@ @g;
+ $token =~ tr/[A-Z]/[a-z]/;
+
} elsif (/^TAG\s*:(.*)$/) {
$token = 'tag';