django.forms.fields.email_re doesn't handle single-letter subdomains
|Reported by:||Gumnos||Owned by:||Daniel Gonzalez Gasull|
|Severity:||Keywords:||email_re subdomain speed single letter|
|Cc:||Jason Yosinski||Triage Stage:||Accepted|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
When domain-validating logic was moved from validators to forms.fields.email_re single-letter sub-domains are no longer caught. There were also some speed issues when processing longer email addresses that were resolved in 1.1.1 and 1.0.4 that this patch should also address in a similar manner. There may be a similar issue with forms.fields.url_re but I didn't get a chance to hack that too.