MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / extractEmail

Function extractEmail

packages/integration-email/src/helper/parser.ts:4–4  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

2 /(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/g;
3
4export const extractEmail = (text: string) => text.match(emailRegex);
5
6const quotedRegex = /\n*On.*<?\n?.*>?.*\n?wrote:\n?/;
7const quotedSpanishRegex = /\n*El.*<?\n?.*>?.*\n?escribió:\n?/;

Callers 2

handleInboundFunction · 0.90
sendMailFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected