You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wouldn't expect domain to throw an error on an Email address, since it's also under the definition of a "Domain".
A domain name is just a part of an email address. It also a part of URI but URI is not a valid input for .domain(). So I think that the name of this method is deceptive or the method is broken by itself.
Support plan
Context
What are you trying to achieve or the steps to reproduce?
What was the result you got?
The line of code above does not throw any exception
What result did you expect?
I expect it to throw
ValidationError
because the input is an email address, not a domain name.The text was updated successfully, but these errors were encountered: