mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-11 01:28:00 +01:00
Better parsing of hosts file system addresses
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/877
This commit is contained in:
parent
673971875d
commit
45f26d7319
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ const Parser = class {
|
||||||
this.netOptionsIterator = new NetOptionsIterator(this);
|
this.netOptionsIterator = new NetOptionsIterator(this);
|
||||||
this.extOptionsIterator = new ExtOptionsIterator(this);
|
this.extOptionsIterator = new ExtOptionsIterator(this);
|
||||||
this.maxTokenLength = Number.MAX_SAFE_INTEGER;
|
this.maxTokenLength = Number.MAX_SAFE_INTEGER;
|
||||||
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.-]|$)/;
|
||||||
this.reHostname = /^[^\x00-\x24\x26-\x29\x2B\x2C\x2F\x3A-\x40\x5B-\x5E\x60\x7B-\x7F]+/;
|
this.reHostname = /^[^\x00-\x24\x26-\x29\x2B\x2C\x2F\x3A-\x40\x5B-\x5E\x60\x7B-\x7F]+/;
|
||||||
this.reHostsSink = /^[\w-.:\[\]]+$/;
|
this.reHostsSink = /^[\w-.:\[\]]+$/;
|
||||||
this.reHostsSource = /^[^\x00-\x24\x26-\x29\x2B\x2C\x2F\x3A-\x40\x5B-\x5E\x60\x7B-\x7F]+$/;
|
this.reHostsSource = /^[^\x00-\x24\x26-\x29\x2B\x2C\x2F\x3A-\x40\x5B-\x5E\x60\x7B-\x7F]+$/;
|
||||||
|
|
Loading…
Reference in a new issue