Skip to content

Commit

Permalink
v0.4.14: Fix for use of .match()
Browse files Browse the repository at this point in the history
  • Loading branch information
jas- committed Sep 15, 2018
1 parent ba26daf commit f515153
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions lib/classes/validation.js
Expand Up @@ -131,7 +131,7 @@ class validation {
errors.push(new Error(scope.messages.port));

if (opts.ports) {
result = opts.ports.match(scope.patterns.ports).join(",");
result = scope.patterns.ports.match(opts.ports).join(",");
if (result == "")
return cb(scope.messages.port);
}
Expand Down Expand Up @@ -180,20 +180,6 @@ class validation {
}


/**
* @function match
* Match specified regex test on string and return array of results
*
* @param {Object} regex - Regex test case
* @param {String} str - String to perform test on
*
* @returns {String}
*/
match(regex, str) {
return regex.match(str);
}


/**
* @function exists
* Binary file tests
Expand Down

0 comments on commit f515153

Please sign in to comment.