Skip to content

Commit

Permalink
Merge branch 'master' of github.com:nib-components/validation-methods
Browse files Browse the repository at this point in the history
  • Loading branch information
James Newell committed Jun 2, 2014
2 parents e047266 + 5d517a4 commit ff58415
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ exports.length = function(length) {
* @return {Boolean}
*/
exports.minlength = function(length) {
return function(val, data) {
return function(val) {
if(val) {
return val && val.length && val.length >= length;
}
Expand All @@ -221,7 +221,7 @@ exports.minlength = function(length) {
* @return {Boolean}
*/
exports.maxlength = function(length) {
return function(val, data) {
return function(val) {
if(val) {
return val && val.length && val.length <= length;
}
Expand Down

0 comments on commit ff58415

Please sign in to comment.