1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

Domaincheck with Regex

This commit is contained in:
nobody
2020-05-30 18:00:48 +02:00
parent 8cca550990
commit 1fea1a2828

View File

@ -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;
}