privoxy-regression-test.pl: Fix a sentence in the documentation
[privoxy.git] / tools / url-pattern-translator.pl
index 09a2a24..0653e76 100755 (executable)
@@ -18,8 +18,6 @@
 # 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 <fk@fabiankeil.de>
 #
 # Permission to use, copy, modify, and distribute this software for any
@@ -63,7 +61,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@\.$@(\..*)?@;