diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util.js | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/lib/util.js b/lib/util.js index c57cb1b..dbadef8 100644 --- a/lib/util.js +++ b/lib/util.js @@ -109,7 +109,7 @@ exports.addCSVValue = function addCSVValue(str, value) { exports.removeCSVValue = function removeCSVValue(str, value) { str = str.trim(); var parts = str ? str.split(/,\s*/) : []; - var valueArr = value instanceof Array ? value : value.split(",\s*"); + var valueArr = value instanceof Array ? value : value.split(/,\s*/); parts = parts.filter(function (e, i, a) { return (!isInList(e, valueArr)); }); @@ -117,18 +117,6 @@ exports.removeCSVValue = function removeCSVValue(str, value) { }; /** - * From given URL returns hostname of the server - * - * @param url String with the investigated URL - * @return String with hostname - * @depreceated - */ -exports.getHost = function getHost(url) { - var uri = urlMod.parse(url); - return uri.host; -}; - -/** * */ var getBugNo = exports.getBugNo = function getBugNo(url) { |