Remove duplicate exports.hasScheme

Fixes #6089
This commit is contained in:
Simon Fridlund
2016-01-26 12:51:02 +01:00
parent 68f27b2cd3
commit a3c701e9de

View File

@@ -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+-\.]*\:\/\//);
};