mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-13 10:30:03 -04:00
Update utils.js
This commit is contained in:
parent
bd7c6dae49
commit
1630366147
1 changed files with 4 additions and 0 deletions
|
@ -181,4 +181,8 @@ utils.sleep = function (ms) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
utils.removeProtocol = function (string) {
|
||||||
|
return string.replace(/(^\w+:|^)\/\//, '')
|
||||||
|
}
|
||||||
|
|
||||||
module.exports = utils
|
module.exports = utils
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue