Skip to content

Instantly share code, notes, and snippets.

@Klerith
Created August 16, 2021 19:23
Show Gist options
  • Select an option

  • Save Klerith/252d7229286244b756ac354d8d836974 to your computer and use it in GitHub Desktop.

Select an option

Save Klerith/252d7229286244b756ac354d8d836974 to your computer and use it in GitHub Desktop.
Vue + Quasar - Validación de un correo electrónico
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';
}
@yaguilao
Copy link

thanks a lot !!!!!

@web-v2
Copy link

web-v2 commented Feb 3, 2024

Thanks!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment