#26423: Make EmailValidator use HTML5 validation rather than more complicated
regular expressions
--------------------------------------+------------------------------------
Reporter: timgraham | Owner: cjbcross
Type: Cleanup/optimization | Status: assigned
Component: Core (Other) | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Comment (by deltaskelta):
Replying to [ticket:26423 timgraham]:
> As discussed on the [https://groups.google.com/d/topic/django-
developers/ASBJ0ge2KYo/discussion django-developers mailing list], the
regular expressions for validating email addresses are complicated for
questionable benefit. We should simplify it to use HTML5 type="email"
validation ([http://blog.gerv.net/2011/05/html5_email_address_regexp/
possible candidate]). A deprecation may be needed to give time for
projects to add back more complex validation that they might required.
I've found another possible fix here
https://html.spec.whatwg.org/multipage/forms.html#valid-e-mail-address,
but I have tried this regex and it does not match much out of the ASCII
range. What does "HTML5" like browsers match that this regex does not?
--
Ticket URL: <https://code.djangoproject.com/ticket/26423#comment:9>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.5ea175a053803eded346f386a1524f54%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.