mirror of
https://github.com/iptv-org/iptv.git
synced 2024-09-05 00:01:35 +02:00
8 lines
202 B
JavaScript
8 lines
202 B
JavaScript
const normalize = require('normalize-url')
|
|
|
|
module.exports = function ({ url }) {
|
|
const normalized = normalize(url, { stripWWW: false })
|
|
|
|
return decodeURIComponent(normalized).replace(/\s/g, '+')
|
|
}
|