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

Code style: wrap regex

This commit is contained in:
nobody
2021-11-28 09:28:38 +01:00
parent 8405504be6
commit 05ea59029f
5 changed files with 6 additions and 6 deletions

View File

@ -139,7 +139,7 @@ helpers.normalizeDomain = function (domain) {
};
helpers.extractDomainFromUrl = function (url, normalize) {
if (/^(?!(http[s]?|file):\/\/).*/.test(url)) {
if ((/^(?!(http[s]?|file):\/\/).*/).test(url)) {
return null;
}