nette / utils

🛠 Lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.
https://doc.nette.org/utils
Other
1.98k stars 147 forks source link

Validators::isEmail() should support localhost domain for debug #225

Closed janbarasek closed 4 years ago

janbarasek commented 4 years ago

I think domain localhost should be supported in e-mail address for local debugging.

By the way, HTML5 input validation <input type="email" required /> allows localhost as domain.

dg commented 4 years ago

This is simply not a meaningful email address. And what's the point of a validator that accepts meaningless addresses?

janbarasek commented 4 years ago

Ok, sorry.