vuelidate icon indicating copy to clipboard operation
vuelidate copied to clipboard

Email with IP in domain part considered as valid

Open happylittleboozer opened this issue 2 years ago • 1 comments

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]

happylittleboozer avatar Oct 20 '21 13:10 happylittleboozer

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.

dobromir-hristov avatar Nov 02 '21 17:11 dobromir-hristov