diff --git a/platform/chromium/vapi-common.js b/platform/chromium/vapi-common.js index 7fc1c96ad..30e09c577 100644 --- a/platform/chromium/vapi-common.js +++ b/platform/chromium/vapi-common.js @@ -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);