Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
isBurnerEmail: function(val) {
if (isEmailBurner(val.toLowerCase()) && !emailLib.isWhitelistedDomain(val.toLowerCase())) {
throw new Error(
'This email provider is not allowed on Open Collective. If you think that it should be, please email us at support@opencollective.com.',
);
}
},
},