Update utils.js
This commit is contained in:
parent
bd7c6dae49
commit
1630366147
@ -181,4 +181,8 @@ utils.sleep = function (ms) {
|
||||
}
|
||||
}
|
||||
|
||||
utils.removeProtocol = function (string) {
|
||||
return string.replace(/(^\w+:|^)\/\//, '')
|
||||
}
|
||||
|
||||
module.exports = utils
|
||||
|
Loading…
Reference in New Issue
Block a user