sindresorhus / email-regex

Regular expression for matching email addresses
MIT License
134 stars 17 forks source link

Why is foo@bar allowed? #7

Closed JanisE closed 6 years ago

JanisE commented 6 years ago

Why is foo@bar allowed? Is that really a valid e-mail address?

sindresorhus commented 6 years ago

Yup => https://stackoverflow.com/a/20573804/64949

JanisE commented 6 years ago

Oh, thanks! I will probably adjust the regexp to not allow dev environments though.

sindresorhus commented 6 years ago

Happy to add an option for that if someone does a PR with tests and docs.

niftylettuce commented 4 years ago

I have published https://github.com/niftylettuce/email-regex-safe as an alternative to this package, with a lot of configurable options. PR's welcome.