Quasar Email Internal Validation
-
hi peeps!
Just want to ask if there is any email internal validation that quasar provided? I didnt find any example of email validation except for vuelidate. Which is im trying to avoid using. Thanks! -
@jarvilito there isn’t i think, you can make a function that you can use in your rules prop. there should be many examples out there.
-
@metalsadman Thanks man, i ended up using Vuelidate, its easy to use too and has a ton of functions. If anyone having a difficulty too on how to use vulidate on quasar this link will help you. Just dont forget to include the vuelidate in boot on quasar conf
-
@jarvilito i use vuelidate too, since model based validation is what i need in most of my projects.
-
If you don’t need it too fancy…I’m doing a bit of regex in my utility lib to achieve this:
export function validateEmail (email) { var reg = /^([A-Za-z0-9_\-.+])+@([A-Za-z0-9_\-.])+\.([A-Za-z]{2,})$/ if (!reg.test(email)) return false return true }