diff --git a/modules/internal/helpers.js b/modules/internal/helpers.js index a493ec47..c2a405c5 100644 --- a/modules/internal/helpers.js +++ b/modules/internal/helpers.js @@ -105,7 +105,7 @@ helpers.normalizeDomain = function (domain) { helpers.extractDomainFromUrl = function (url = '', normalize) { - if (!url.startsWith('http')) { + if (/^(?!(http[s]?|file):\/\/).*/.test(url)) { return null; }