mirror of https://github.com/gorhill/uBlock.git
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
|
@ -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 New Issue