Trailing space on local part returns True
Opened this issue · 1 comments
jontycg commented
When calling validate_email('test @example.com)
it returns True. After researching this online it appears that spaces should only ever be allowed in quotes and so a trailing space on the local part should return False. Having a leading space also returns True when that should also return False.
fluffy-critter commented
I just ran into this as well. Quite surprising behavior, and this is much more difficult to work around than simply calling .strip()
on the address since this means the whitespace can be embedded.