originaluko / haveibeenpwned

Identify pwned accounts and passwords via the "Have I been pwned?" (https://haveibeenpwned.com) API.
MIT License
57 stars 18 forks source link

Improve email address validation #5

Closed HumanEquivalentUnit closed 5 years ago

HumanEquivalentUnit commented 5 years ago

Original regex doesn't validate domains with numbers or hyphens, this changes the validation to use [System.Net.Mail.MailAddress] instead.

Fixes #4