mirror of
https://github.com/iptv-org/iptv
synced 2026-10-21 18:46:20 -04:00
Update utils.ts
This commit is contained in:
1 parent
f55f05c4fb
commit
377035b66a
1 file changed
+1
-1
+1
-1
@@ -18,7 +18,7 @@ import fs from 'node:fs'
|
||||
export function isURI(string: string): boolean {
|
||||
try {
|
||||
const url = new URL(string)
|
||||
return /^(http:|https:|mmsh:|rtsp:|rtmp:|srt:|rtp:|udp:)/.test(url.protocol)
|
||||
return /^(http:|https:|mms:|mmsh:|rtsp:|rtmp:|srt:|rtp:|udp:)/.test(url.protocol)
|
||||
} catch {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user