devise
devise copied to clipboard
Devise::email_regexp rejects unusual but valid email
"example@tt" =~ Devise.email_regexp
# => nil
Compare to: http://isemail.info/example%40tt
I figure the intent of the Devise::email_regexp is to conduct minimal validation, and it should "first do no harm". Note the above @tt address is an example of a TLD that does, in fact, have MX records on it. Dominic Sayers on isemail.info also reports encountering an in-use email on the Ukrainian @ua TLD.
Do I misunderstand the spec of the Devise default behaviour here?
Good catch, please send a PR? :)
Will do
Done in #4001