mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
Fix hostname extraction when URL has port
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/1001 The issue affected only the uncloaking of canonical names, when the authority part of a URL contained port information.
This commit is contained in:
parent
6259f88598
commit
bdf9030a98
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ vAPI.webextFlavor = {
|
|||
};
|
||||
|
||||
const reHostnameFromNetworkURL =
|
||||
/^(?:http|ws|ftp)s?:\/\/([0-9a-z_][0-9a-z._-]*[0-9a-z])\//;
|
||||
/^(?:http|ws|ftp)s?:\/\/([0-9a-z_][0-9a-z._-]*[0-9a-z])(?::\d+)?\//;
|
||||
|
||||
vAPI.hostnameFromNetworkURL = function(url) {
|
||||
const matches = reHostnameFromNetworkURL.exec(url);
|
||||
|
|
Loading…
Reference in a new issue