mirror of
https://github.com/iptv-org/iptv
synced 2026-10-21 18:46:20 -04:00
wip
This commit is contained in:
1 parent
6826742c6b
commit
8f7940c8ca
8 files changed
+160
-78
No files matched your search
+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:)/.test(url.protocol)
|
||||
return /^(http:|https:|mmsh:|rtsp:|rtmp:|srt:|rtp:|udp:)/.test(url.protocol)
|
||||
} catch {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user