From 9b09b278a7ff6910f4334e5399bdb055882274a4 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Fri, 1 May 2009 11:03:11 +0000 Subject: [PATCH] Ignore nested comments in tokenize(). --- tools/privoxy-regression-test.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/privoxy-regression-test.pl b/tools/privoxy-regression-test.pl index 29dc7bc2..82726c8c 100755 --- a/tools/privoxy-regression-test.pl +++ b/tools/privoxy-regression-test.pl @@ -7,7 +7,7 @@ # A regression test "framework" for Privoxy. For documentation see: # perldoc privoxy-regression-test.pl # -# $Id: privoxy-regression-test.pl,v 1.167 2009/04/05 18:58:46 fk Exp $ +# $Id: privoxy-regression-test.pl,v 1.169 2009/05/01 09:26:56 fk Exp $ # # Wish list: # @@ -223,7 +223,7 @@ sub tokenize ($) { s@&@&@g; # Tokenize - if (/^\#\s*([^=:]*?)\s*[=]\s*(.+?)\s*$/) { + if (/^\#\s*([^=:#]*?)\s*[=]\s*([^#]+)$/) { $token = $1; $value = $2; -- 2.39.2