Actions
Refactor #14641
openSimplify e-mail address regex
Status:
New
Priority:
Normal
Assignee:
-
Category:
E-Mail
Target version:
-
Description
The regex in user.rb is probably one of the better ones, everything I'd expect to validate validates. However, I'd still propose it's removed, or refactored to simply be /@/.
First, some reasoning: https://davidcel.is/posts/stop-validating-email-addresses-with-regex/
Second, with RFC5322, UTF-8 is now permitted on modern servers. 甲斐@黒川.日本 is a valid e-mail address.
Also, the 60 length limit is not found in any RFC.
Actions