projects
/
privoxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tools/url-pattern-translator.pl: Add the new 'PCRE-HOST-PATTERN:' prefix
[privoxy.git]
/
tools
/
url-pattern-translator.pl
diff --git
a/tools/url-pattern-translator.pl
b/tools/url-pattern-translator.pl
index
0653e76
..
4a78687
100755
(executable)
--- a/
tools/url-pattern-translator.pl
+++ b/
tools/url-pattern-translator.pl
@@
-72,6
+72,9
@@
sub convert_host_pattern ($) {
# Match single character with a dot.
$hp =~ s@(?<!\))\?@.@g;
+ # Add the prefix
+ $hp = "PCRE-HOST-PATTERN:" . $hp;
+
return $hp;
}