Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
const
emailRegex =
new
RegExp(/([^a-zA-Z0-9@.+_-])+/gi);
2
3
export
const
serializeEmail = (email: string) => {
4
return
email.split(
','
)[0].replace(emailRegex,
''
).toLowerCase();
5
};
Callers
2
email.test.ts
File · 0.90
createInvitation
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected