Skip to content

Commit

Permalink
Fix email verification
Browse files Browse the repository at this point in the history
  • Loading branch information
steevepay committed Mar 30, 2022
1 parent f8bff8e commit 8d23a16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ const validation = {

const typeRegex = [{
type: 'mail',
regex: '^\\w+([\\.-]?\\w+)*@\\w+([\\.-]?\\w+)*(\\.\\w{2,3})+$',
regex: '^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-.]+\\.[a-zA-Z0-9-.]{2,20}$',
errMessage: 'is an invalid mail.'
}, {
type: 'phone',
Expand Down

0 comments on commit 8d23a16

Please sign in to comment.