MCPcopy
hub / github.com/iptv-org/iptv / normalizeURL

Function normalizeURL

scripts/utils.ts:27–31  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

25}
26
27export function normalizeURL(url: string): string {
28 const normalized = normalizeUrl(url, { stripWWW: false })
29
30 return decodeURIComponent(normalized).replace(/\s/g, '+').toString()
31}
32
33export function truncate(string: string, limit: number = 100) {
34 if (!string) return string

Callers 1

normalizeURLMethod · 0.90

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected