kopia lustrzana https://github.com/Stopka/fedicrawl
5 wiersze
188 B
TypeScript
5 wiersze
188 B
TypeScript
|
export const extractEmails = (text:string):string[] => {
|
||
|
return (text.match(/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+)/gi) || [])
|
||
|
.map(email => email.toLowerCase()) || []
|
||
|
}
|