From e79445e28d4815ed62430efbf52f3c4a24c188bc Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Wed, 11 Mar 2026 07:08:24 +0300 Subject: [PATCH] Update utils.ts --- scripts/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/utils.ts b/scripts/utils.ts index d58b80406d..ecce8da58b 100644 --- a/scripts/utils.ts +++ b/scripts/utils.ts @@ -2,8 +2,8 @@ import normalizeUrl from 'normalize-url' export function isURI(string: string): boolean { try { - new URL(string) - return true + const url = new URL(string) + return /^(http:|https:|mmsh:|rtsp:|rtmp:)/.test(url.protocol) } catch { return false }