Last active
July 12, 2016 04:35
-
-
Save billmei/5155734 to your computer and use it in GitHub Desktop.
Quick and simple email validation. Returns a boolean.
This file contains 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 validateEmail (email) { | |
return /.+@.+\..+/.test(email); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment