Created
January 9, 2019 20:45
-
-
Save marioluevanos/2c61ef8787d84caaebd6401e943b78a4 to your computer and use it in GitHub Desktop.
Checks if a valid email format.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function validEmailFormat(email) { | |
return email.length > 0 && /\w[@].+[.]\w{2,3}/.test(email) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment