npmalerts icon indicating copy to clipboard operation
npmalerts copied to clipboard

Subscription input (email address) does not accept generic TLD extensions

Open brenner-company opened this issue 8 years ago • 1 comments

When subscribing with an email address that contains a gTLD extension (mine has a '.company') an Empty email. and Invalid email. gets returned.

brenner-company avatar Oct 13 '16 08:10 brenner-company

Interesting! I'm using express-validator to validate the email: https://github.com/seriema/npmalerts/blob/9e33d9868a456982174b06e13d7ccc755abea1a3/lib/routes/api.js#L24 The latest deployed site is using [email protected] and the latest express-validator is 2.20.10 so maybe upgrading it would help. I'd like to be sure before re-deploying with a new version as I'm pressed for time at the moment so if there's any complications I might not have time to resolve them. So any help is appreciated! I didn't find an issue logged with them or a mention in the changelog but maybe you could help out by seeing if they support gTLD's?

seriema avatar Oct 16 '16 09:10 seriema