* Update ublock.js

* Update ublock.js

* Update ublock.js
This commit is contained in:
Hugo Xu 2018-04-20 14:09:41 -06:00 committed by Raymond Hill
parent 9d8e2e20fb
commit 048930ca8f
1 changed files with 3 additions and 2 deletions

View File

@ -266,8 +266,9 @@ var matchBucket = function(url, hostname, bucket, start) {
return whitelist;
};
µBlock.reWhitelistBadHostname = /[^a-z0-9.\-\[\]:]/;
µBlock.reWhitelistHostnameExtractor = /([a-z0-9\[][a-z0-9.\-]*[a-z0-9\]])(?::[\d*]+)?\/(?:[^\x00-\x20\/]|$)[^\x00-\x20]*$/;
// https://github.com/gorhill/uBlock/issues/3717
µBlock.reWhitelistBadHostname = /[^a-z0-9.\-_\[\]:]/;
µBlock.reWhitelistHostnameExtractor = /([a-z0-9.\-_\[\]]+)(?::[\d*]+)?\/(?:[^\x00-\x20\/]|$)[^\x00-\x20]*$/;
/******************************************************************************/