We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6739718 commit 45f26d7Copy full SHA for 45f26d7
1 file changed
src/js/static-filtering-parser.js
@@ -102,7 +102,7 @@ const Parser = class {
102
this.netOptionsIterator = new NetOptionsIterator(this);
103
this.extOptionsIterator = new ExtOptionsIterator(this);
104
this.maxTokenLength = Number.MAX_SAFE_INTEGER;
105
- this.reIsLocalhostRedirect = /(?:0\.0\.0\.0|(?:broadcast|local)host|local|ip6-\w+)\b/;
+ this.reIsLocalhostRedirect = /(?:0\.0\.0\.0|(?:broadcast|local)host|local|ip6-\w+)(?:[^\w.-]|$)/;
106
this.reHostname = /^[^\x00-\x24\x26-\x29\x2B\x2C\x2F\x3A-\x40\x5B-\x5E\x60\x7B-\x7F]+/;
107
this.reHostsSink = /^[\w-.:\[\]]+$/;
108
this.reHostsSource = /^[^\x00-\x24\x26-\x29\x2B\x2C\x2F\x3A-\x40\x5B-\x5E\x60\x7B-\x7F]+$/;
0 commit comments