sindresorhus / email-regex

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

Can you allow "+" plus symbol in email addresses? #1

Closed niftylettuce closed 9 years ago

niftylettuce commented 9 years ago

e.g. sindre+sorhus@gmail.com

sindresorhus commented 9 years ago

That already works. The regex is intentionally loose.

console.log(emailRegex().test('sindre+sorhus@gmail.com'));
//=> true