From 1630366147453111a3712d0e33a8db01b5f6dfeb Mon Sep 17 00:00:00 2001 From: freearhey Date: Sat, 27 Mar 2021 15:09:20 +0300 Subject: [PATCH] Update utils.js --- scripts/utils.js | 4 ++++ 1 file changed, 4 insertions(+) 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