email error message unfriendly #43

pixelshaded opened this Issue Jul 11, 2012 · 0 comments


None yet
1 participant

If I validate a property to be email format, the error message on failed validation is something like this:

The ‘email’ does not match the ‘/^(?:[\w!#$%&'_+-/=?^`{|}~]+.)_[\w!#$%&'*+-/=?^`{|}~]+@(?:(?:(?:a-zA-Z0-9{0,61}[a-zA-Z0-9]?.)+a-zA-Z0-9{0,61}[a-zA-Z0-9]?)|(?:[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5]).){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])]))$/’ pattern.

I think this might be useful to know the pattern that its being compared against for the developer, but as a user this error message is like waaaa?

Not necessarily a bug, but I imagine a more friendly error message would be that 'email' was not a valid email address.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment