X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=tools%2Furl-pattern-translator.pl;h=5477a87600abacfcdfd781eec8f3af79f1b1bbf7;hp=9dfa78f2ce2a91ec00d19422d3c62379e6ad550f;hb=5d67369224f780b21d94cacf31dbcdf288c7ed6c;hpb=96a70945adcf3e57b9b9475f8e6da48d5d325d6f diff --git a/tools/url-pattern-translator.pl b/tools/url-pattern-translator.pl index 9dfa78f2..5477a876 100755 --- a/tools/url-pattern-translator.pl +++ b/tools/url-pattern-translator.pl @@ -15,11 +15,6 @@ # # url-pattern-translator.pl old.action > new.action # -# Only convert your files once, or, as RoboCop used to say, -# there will be... trouble. -# -# $Id: url-pattern-translator.pl 1.10 2008/08/10 16:32:59 fk Exp $ -# # Copyright (c) 2008 Fabian Keil # # Permission to use, copy, modify, and distribute this software for any @@ -63,7 +58,7 @@ sub convert_host_pattern ($) { } # Match-all syntax has changed ... - $hp =~ s@\*@.*@g; + $hp =~ s@\*@[^.]*@g; # Extended host patterns are right-anchored by default $hp =~ s@\.$@(\..*)?@; @@ -74,6 +69,9 @@ sub convert_host_pattern ($) { # Match single character with a dot. $hp =~ s@(?