sha256 / Pristine

Vanilla javascript form validation micro-library
https://pristine.js.org/
MIT License
395 stars 80 forks source link

Email validator does not check for valid characters #20

Open jono-hayward opened 5 years ago

jono-hayward commented 5 years ago

I have found that Pristine's built-in email validation rules only check for a structurally correct email address (e.g. username@domain.tld) but does not check for invalid characters in the username part. For example, in 99% of cases a comma is not allowed in an email address but Pristine does not raise an error when it encounters one.

A good reference for what can and cannot be included in an email address is detailed here.

glucka commented 3 years ago

hi, i get an error if i write comma in username part (latest pristine version)