HaveIBeenPwned / EmailAddressExtractor

A project to rapidly extract all email addresses from any files in a given path
BSD 3-Clause "New" or "Revised" License
64 stars 23 forks source link

Fix incorrect handling of commas #25

Closed mitchwilliamson closed 1 year ago

mitchwilliamson commented 1 year ago

This should resolve #22. This was caused by an error in the regex, where the character set !#$%&'*+-/=?^_`{|}~ was put into the regex but the - character wasn't escaped, instead causing it to be the range of characters between + and /, which includes ,.

Screenshot from RegExr: firefox_y3ZQObFm0Z

Since - is already included as a character, I've removed it between + and / and the test now passes.

troyhunt commented 1 year ago

Sensational, thank you!