mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
RegExp fix for https://github.com/gorhill/uBlock/issues/3717 (#3718)
* Update ublock.js * Update ublock.js * Update ublock.js
This commit is contained in:
parent
9d8e2e20fb
commit
048930ca8f
1 changed files with 3 additions and 2 deletions
|
@ -266,8 +266,9 @@ var matchBucket = function(url, hostname, bucket, start) {
|
||||||
return whitelist;
|
return whitelist;
|
||||||
};
|
};
|
||||||
|
|
||||||
µBlock.reWhitelistBadHostname = /[^a-z0-9.\-\[\]:]/;
|
// https://github.com/gorhill/uBlock/issues/3717
|
||||||
µBlock.reWhitelistHostnameExtractor = /([a-z0-9\[][a-z0-9.\-]*[a-z0-9\]])(?::[\d*]+)?\/(?:[^\x00-\x20\/]|$)[^\x00-\x20]*$/;
|
µBlock.reWhitelistBadHostname = /[^a-z0-9.\-_\[\]:]/;
|
||||||
|
µBlock.reWhitelistHostnameExtractor = /([a-z0-9.\-_\[\]]+)(?::[\d*]+)?\/(?:[^\x00-\x20\/]|$)[^\x00-\x20]*$/;
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue