From: Fabian Keil <fk@fabiankeil.de>
Date: Sun, 21 Jun 2009 18:15:24 +0000 (+0000)
Subject: Translate * more precisely.
X-Git-Tag: v_3_0_14~80
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/developer-manual/static/faq/static/gitweb.js?a=commitdiff_plain;h=ef35e4dc98066b998f7a0aeaef891f9d8369067a;p=privoxy.git

Translate * more precisely.
---

diff --git a/tools/url-pattern-translator.pl b/tools/url-pattern-translator.pl
index 09a2a247..ae745cf2 100755
--- a/tools/url-pattern-translator.pl
+++ b/tools/url-pattern-translator.pl
@@ -18,7 +18,7 @@
 # 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 $
+# $Id: url-pattern-translator.pl,v 1.3 2009/01/13 17:01:04 fabiankeil Exp $
 #
 # Copyright (c) 2008 Fabian Keil <fk@fabiankeil.de>
 #
@@ -63,7 +63,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@\.$@(\..*)?@;