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'm interested in that escaped backslash near the end. Why is it there? It allows the following email address to validate:
a@s\coom
I've checked this using an RPC822 validator here and it failed. I think a \ in the domain part is not part of RPC822 spec. Though the "/" is valid I think. The following email address passes that site's check:
hello@gmail/com
So yeah, is the escaped backslash supposed to be an escaped forward slash? What's the reasoning behind the backslash being allowed in the domain part?
Cheers
The text was updated successfully, but these errors were encountered:
Found this one that works for me and made a custom validation function
^(([^<>()\[\]\\.,;:\s@"]+(.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}])|(([a-zA-Z-0-9]+.)+[a-zA-Z]{2,}))$
In bouncer/src/bouncer/validators.cljx the email validation uses the following regex:
#"^[^@]+@[^@\\.]+[\\.].+"
I'm interested in that escaped backslash near the end. Why is it there? It allows the following email address to validate:
a@s\coom
I've checked this using an RPC822 validator here and it failed. I think a
\
in the domain part is not part of RPC822 spec. Though the "/" is valid I think. The following email address passes that site's check:hello@gmail/com
So yeah, is the escaped backslash supposed to be an escaped forward slash? What's the reasoning behind the backslash being allowed in the domain part?
Cheers
The text was updated successfully, but these errors were encountered: