mirror of https://github.com/iptv-org/iptv
Small repo refactoring
parent
624bc78287
commit
ee754bc44e
Binary file not shown.
Before Width: | Height: | Size: 1.0 MiB |
Before Width: | Height: | Size: 404 KiB After Width: | Height: | Size: 404 KiB |
@ -1,12 +0,0 @@
|
||||
const parser = require('url')
|
||||
|
||||
function getUrlPath(u) {
|
||||
let parsedUrl = parser.parse(u)
|
||||
let searchQuery = parsedUrl.search || ''
|
||||
|
||||
return parsedUrl.host + parsedUrl.pathname + searchQuery
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
getUrlPath
|
||||
}
|
Loading…
Reference in New Issue