guillaumepotier / Parsley.js

Validate your forms, frontend, without writing a single line of javascript
http://parsleyjs.org
MIT License
9.05k stars 1.32k forks source link

Email validation does not support gTLDs as email domain #1367

Closed jmd-au closed 1 year ago

jmd-au commented 1 year ago

What kind of issue is this? (put 'x' between the square brackets)

Email validation does not take into account for all TLD variations.

Whilst trying to sign up for a website where they use parsley - my email address was rejected multiple times.

it seems to be something around the second segment in a regex where if I enter in more than 5 characters it triggers the error validation stating that it is not a valid email address.

The email domain that i use is .digital meaning it won't accept anything past .digit as the last segment in the email.

The website is using v2.9.2 of Parsley and jQuery v3.5.1

marcandre commented 1 year ago

I tried "a@b.digital" in the example page and it validates correctly.