vuelidate
vuelidate copied to clipboard
Email with IP in domain part considered as valid
Describe the bug Email with IP in domain part considered as valid. Example: [email protected] Vuelidate version: 0.7.6
Reproduction URL https://codesandbox.io/s/vigorous-bartik-fyk8p
Expected behavior Domain part may be an IP address literal, but surrounded by square brackets: test@[10.25.26.27]
We use this regex to parse emails - https://emailregex.com/index.html
From the looks of things, our regex is a bit outdated and on their website [email protected]
is not valid. Using square brackets is fine.