first commit
This commit is contained in:
6
calcom/packages/lib/extract-base-email.ts
Normal file
6
calcom/packages/lib/extract-base-email.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
// Function to extract base email
|
||||
export const extractBaseEmail = (email: string): string => {
|
||||
const [localPart, domain] = email.split("@");
|
||||
const baseLocalPart = localPart.split("+")[0];
|
||||
return `${baseLocalPart}@${domain}`;
|
||||
};
|
||||
Reference in New Issue
Block a user