Created
September 13, 2019 15:38
-
-
Save walkerdigital/ab018e2f23cac9c9ccde20f309f362ee to your computer and use it in GitHub Desktop.
JavaScript Email Validation
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 emailIsValid (email) { | |
return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment