X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=tools%2Furl-pattern-translator.pl;h=5477a87600abacfcdfd781eec8f3af79f1b1bbf7;hp=09a2a247f9ff8fde8e8f40c291b7af7aa34e3f40;hb=5d67369224f780b21d94cacf31dbcdf288c7ed6c;hpb=0665a8176240ed4bf38f65680ffaab6e08b70720 diff --git a/tools/url-pattern-translator.pl b/tools/url-pattern-translator.pl index 09a2a247..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,v 1.2 2008/08/10 16:35:47 fabiankeil 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@(?