projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1984152
)
tools/url-pattern-translator.pl: Add the new 'PCRE-HOST-PATTERN:' prefix
author
Fabian Keil
<fk@fabiankeil.de>
Wed, 5 Aug 2020 09:21:06 +0000
(11:21 +0200)
committer
Fabian Keil
<fk@fabiankeil.de>
Thu, 6 Aug 2020 08:28:55 +0000
(10:28 +0200)
Sponsored by: Robert Klemme
tools/url-pattern-translator.pl
patch
|
blob
|
history
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;
}