Created
August 16, 2021 19:23
-
-
Save Klerith/252d7229286244b756ac354d8d836974 to your computer and use it in GitHub Desktop.
Vue + Quasar - Validación de un correo electrónico
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
| isValidEmail( val ) { | |
| const emailPattern = /^(?=[a-zA-Z0-9@._%+-]{6,254}$)[a-zA-Z0-9._%+-]{1,64}@(?:[a-zA-Z0-9-]{1,63}\.){1,8}[a-zA-Z]{2,63}$/; | |
| return emailPattern.test(val) || 'El correo no parece ser válido'; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks a lot !!!!!