From a3c701e9de0280a7938f166242853fd2eb63e7da Mon Sep 17 00:00:00 2001 From: Simon Fridlund Date: Tue, 26 Jan 2016 12:51:02 +0100 Subject: [PATCH] Remove duplicate exports.hasScheme Fixes #6089 --- tools/utils/utils.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tools/utils/utils.js b/tools/utils/utils.js index 73ef7c12c3..9b23caf2c4 100644 --- a/tools/utils/utils.js +++ b/tools/utils/utils.js @@ -104,11 +104,6 @@ ${addressEntries.map(entry => entry.address).join(', ')}`); } }; -exports.hasScheme = function (str) { - return !! str.match(/^[A-Za-z][A-Za-z0-9+-\.]*\:\/\//); -}; - - exports.hasScheme = function (str) { return !! str.match(/^[A-Za-z][A-Za-z0-9+-\.]*\:\/\//); };