diff --git a/scripts/utils.js b/scripts/utils.js index 5eb6cdba81..414bd99515 100644 --- a/scripts/utils.js +++ b/scripts/utils.js @@ -181,4 +181,8 @@ utils.sleep = function (ms) { } } +utils.removeProtocol = function (string) { + return string.replace(/(^\w+:|^)\/\//, '') +} + module.exports = utils