Update utils.js

This commit is contained in:
freearhey 2021-03-27 15:09:20 +03:00
parent bd7c6dae49
commit 1630366147
1 changed files with 4 additions and 0 deletions

View File

@ -181,4 +181,8 @@ utils.sleep = function (ms) {
} }
} }
utils.removeProtocol = function (string) {
return string.replace(/(^\w+:|^)\/\//, '')
}
module.exports = utils module.exports = utils