From: Fabian Keil Date: Tue, 5 Jan 2010 23:36:43 +0000 (+0000) Subject: Fix two highlighting patterns that were too aggressive. X-Git-Tag: v_3_0_16~81 X-Git-Url: http://www.privoxy.org/gitweb/misc.html?a=commitdiff_plain;h=cd2137e61f4ad5341297c8716f8e7c07fb62441c;p=privoxy.git Fix two highlighting patterns that were too aggressive. --- diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl index a8816200..246d04ac 100755 --- a/tools/privoxy-log-parser.pl +++ b/tools/privoxy-log-parser.pl @@ -8,7 +8,7 @@ # # http://www.fabiankeil.de/sourcecode/privoxy-log-parser/ # -# $Id: privoxy-log-parser.pl,v 1.222 2010/01/03 13:47:02 fk Exp $ +# $Id: privoxy-log-parser.pl,v 1.72 2010/01/03 13:48:44 fabiankeil Exp $ # # TODO: # - LOG_LEVEL_CGI, LOG_LEVEL_ERROR, LOG_LEVEL_WRITE content highlighting @@ -828,9 +828,9 @@ sub handle_loglevel_header ($) { } elsif ($c =~ m/^New host is: ([^\s]*)\./) { - # New host is: trac.vidalia-project.net. Crunching Referer: http://www.vidalia-project.net/ - $c = highlight_matched_host($c, '(?<=New host is: )[^\s]+'); - $c = highlight_matched_url($c, '(?<=Crunching Referer: )[^\s]+'); + # New host is: trac.vidalia-project.net. Crunching Referer: http://www.vidalia-project.net/! + $c = highlight_matched_host($c, '(?<=New host is: )[^\s]+(?=\.)'); + $c = highlight_matched_url($c, '(?<=Crunching Referer: )[^\s!]+'); } elsif ($c =~ m/^Text mode enabled by force. (Take cover)!/) {