Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email element default validator error message is unhelpful #43

Open
michalbundyra opened this issue Jan 15, 2020 · 1 comment
Open

Email element default validator error message is unhelpful #43

michalbundyra opened this issue Jan 15, 2020 · 1 comment

Comments

@michalbundyra
Copy link
Member

The RegexValidator created by Email->getEmailValidator should be given a message similar to the EmailAddress validator, rather than the obnoxious dump of the pattern.

Related: zendframework/zend-validator#41


Originally posted by @AndrolGenhald at zendframework/zend-form#84

@kronthto
Copy link

kronthto commented Jul 7, 2023

The EmailAddress validator also handles IDN hostnames, while the regex here blocks them.
A comment says that the regex is to match HTML spec behavior - either Firefox and Chrome allow IDN hostnames though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants