Created
July 10, 2021 09:55
-
-
Save ir3ne/5ee475fbd10193e4c26525f581b16b6b to your computer and use it in GitHub Desktop.
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 checkEmail(email) { | |
const emailPattern = /^[^@]+@\w+(\.\w+)+\w$/; | |
return emailPattern.test(email); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment