From 8b29f5de43c18e7a1fa156d2e3d6eec11add68dd Mon Sep 17 00:00:00 2001 From: tophf Date: Tue, 7 Apr 2015 11:56:50 +0300 Subject: [PATCH] Ignore port number in url domain --- storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage.js b/storage.js index a9d5f2e6..85a968bd 100644 --- a/storage.js +++ b/storage.js @@ -115,7 +115,7 @@ function getDomains(url) { if (url.indexOf("file:") == 0) { return []; } - var d = /.*?:\/*([^\/]+)/.exec(url)[1]; + var d = /.*?:\/*([^\/:]+)/.exec(url)[1]; var domains = [d]; while (d.indexOf(".") != -1) { d = d.substring(d.indexOf(".") + 1);