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