From 1d9dfeb44673d358f7de0d70a9e7a8b151727585 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sun, 14 Jun 2009 14:33:01 +0000 Subject: [PATCH] Fix a tokenize() regression that caused it to miss tokens with trailing comments. This it turn caused Privoxy-Regression-Test to always execute a test that should only be executed if enable-edit-actions is enabled. Looks like we need a Privoxy-Regression-Test-Regression-Test. --- 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 955fc871..cdb2b093 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.185 2009/06/10 16:36:42 fk Exp $ +# $Id: privoxy-regression-test.pl,v 1.186 2009/06/14 14:29:25 fk Exp $ # # Wish list: # @@ -225,7 +225,7 @@ sub tokenize ($) { s@&@&@g; # Tokenize - if (/^\#\s*([^=:#]*?)\s*[=]\s*([^#]+)$/) { + if (/^\#\s*([^=:#]*?)\s*[=]\s*([^#]+)(?:#.*)?$/) { $token = $1; $value = $2; -- 2.39.2