jfilter/clean-text

emails not working properly

AssassinTee opened this issue · 1 comments

email_addresses = [
    "mustermann@fh-aachen.de",
    "mustermann(at)fh-aachen.de",
    "m.mustermann@fh-aachen.de",
    "m.mustermann(at)fh-aachen.de",
    "m.mustermann@alumni.fh-aachen.de",
    "max.mustermann@alumni.fh-aachen.com",
    "hotbunny1337@test.mail.gg",
    "test@this.really.should.work.com"
]

for i, email in enumerate(email_addresses):
    print(f"{i}: {text_cleaner.transform(email)}")
0: <email>
1: mustermann(at)fh-aachen.de
2: <email>
3: m.mustermann(at)fh-aachen.de
4: <email>-aachen.de
5: <email>-aachen.com
6: <email>
7: <email>.com

I expect, that the email-addresses with (at) (instead of @) are not working, but all others should work, some of them actually exist in a similar form.

Thanks for the test cases.