Skip to content

Commit

Permalink
Merge 4630246 into c26eb70
Browse files Browse the repository at this point in the history
  • Loading branch information
danielstgt committed Sep 2, 2017
2 parents c26eb70 + 4630246 commit 42f4e2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rule/type.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const types = {
return typeof (value) === 'function';
},
email(value) {
return typeof (value) === 'string' && !!value.match(pattern.email);
return typeof (value) === 'string' && !!value.match(pattern.email) && value.length < 255;
},
url(value) {
return typeof (value) === 'string' && !!value.match(pattern.url);
Expand Down

0 comments on commit 42f4e2a

Please sign in to comment.