MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / serializeEmail

Function serializeEmail

packages/serializers/src/email.ts:3–5  ·  view source on GitHub ↗
(email: string)

Source from the content-addressed store, hash-verified

1const emailRegex = new RegExp(/([^a-zA-Z0-9@.+_-])+/gi);
2
3export const serializeEmail = (email: string) => {
4 return email.split(',')[0].replace(emailRegex, '').toLowerCase();
5};

Callers 2

email.test.tsFile · 0.90
createInvitationFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected