npmalerts
npmalerts copied to clipboard
Subscription input (email address) does not accept generic TLD extensions
When subscribing with an email address that contains a gTLD extension (mine has a '.company') an Empty email.
and Invalid email.
gets returned.
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?