Open userquin opened 5 years ago
Since an email can contain multiple @, mapDomain function must find the last index of @ to use it as the encoded chunk for the domain.
@
mapDomain
For example, this email is valid "a@b"@c: in that case the mail address is "a@b" and the domain is c.
"a@b"@c
"a@b"
c
Another more complex valid email: "very.(),:;<>[]\".VERY.\"@very@\\ \"very\".unusual"@mydomain.com
"very.(),:;<>[]\".VERY.\"@very@\\ \"very\".unusual"@mydomain.com
Since an email can contain multiple
@
,mapDomain
function must find the last index of@
to use it as the encoded chunk for the domain.For example, this email is valid
"a@b"@c
: in that case the mail address is"a@b"
and the domain isc
.Another more complex valid email:
"very.(),:;<>[]\".VERY.\"@very@\\ \"very\".unusual"@mydomain.com