Closed cookieMonsterDev closed 2 months ago
The yup.string().email() works via regex but is does not cover cases like:
Can we update it? to something like:
/^(([^>()[\]\\.,;:\s@"]+(\.[^<()[]\.,;:\s@"]+)*)|.(".+"))@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}])|(([a-zA-Z-0-9]+.)+[a-zA-Z]{2,}))$/
Also a@a pass the check
Tons of explanations in the repo for why this is the way it is. Yes it doesn't cover lots of cases, you are encouraged to customize the method to suit your needed
The yup.string().email() works via regex but is does not cover cases like:
Can we update it? to something like:
/^(([^>()[\]\\.,;:\s@"]+(\.[^<()[]\.,;:\s@"]+)*)|.(".+"))@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}])|(([a-zA-Z-0-9]+.)+[a-zA-Z]{2,}))$/