frisbee icon indicating copy to clipboard operation
frisbee copied to clipboard

Ensure email addresses are 100% valid

Open 9b opened this issue 4 years ago • 1 comments

https://github.com/9b/frisbee/blob/3cfe1388a1386fd3c1db2318690a87b7a4eb02b8/frisbee/utils.py#L51

There are times when matches are found in which extra data has been tacked onto the end of the match. In these cases, a valid email is made invalid due to the trailing data. It would be ideal to trim anything past the core domain match.

Potential ways to solve this

  • Get the substring index of the domain + length of domain in order to then ask for that, plus the pre-pending email match
  • Leverage a TLD list in order to match the TLD, dropping anything else.

9b avatar Nov 23 '19 14:11 9b