Changes between Initial Version and Version 1 of Ticket #27029, comment 40
- Timestamp:
- Jul 3, 2026, 3:02:51 PM (3 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #27029, comment 40
initial v1 3 3 But if that simplified proposal—or something like it—is ''not'' accepted (and this ticket remains accepted), then this ticket will need to be addressed by following RFC 6532 to allow UTF8-non-ascii characters in the EmailValidator user_regex, in both the dot-atom and quoted-string parts. 4 4 5 Since this is a potentially breaking change, it would need to be opt-in, e.g. via a new `accept_eai_user ` EmailValidator keyword param (like DomainNameValidator's `accept_idna`, but defaulting to False).5 Since this is a potentially breaking change, it would need to be opt-in, e.g. via a new `accept_eai_username` EmailValidator keyword param (like DomainNameValidator's `accept_idna`, but defaulting to False). 6 6 7 7 To address concerns about regular expression complexity, it would probably be helpful to break up EmailValidator's user_regex into simpler components, similar to what was done in DomainNameValidator. (I suggest using the RFC 5322 terms: atom, dot_atom, qtext, quoted_pair, quoted_string. Since RFC 6532 is specified using those same terms, it should help with reviewing a PR for this ticket.)