tools/url-pattern-translator.pl: Add the new 'PCRE-HOST-PATTERN:' prefix
authorFabian Keil <fk@fabiankeil.de>
Wed, 5 Aug 2020 09:21:06 +0000 (11:21 +0200)
committerFabian Keil <fk@fabiankeil.de>
Thu, 6 Aug 2020 08:28:55 +0000 (10:28 +0200)
Sponsored by: Robert Klemme

tools/url-pattern-translator.pl

index 0653e76..4a78687 100755 (executable)
@@ -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;
 }