Created
August 23, 2018 13:37
-
-
Save midnightcodr/37d33cce0fe9e1643960f3fa3a459b15 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// handy function to strip the plusing part of a email address with + | |
const stripPlusing = em => em.replace(/\+[^@]+/, '') | |
console.log(stripPlusing('[email protected]')) | |
console.log(stripPlusing('[email protected]')) | |
console.log(stripPlusing('[email protected]')) | |
/* | |
[email protected] | |
[email protected] | |
[email protected] | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment