Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update is-generic-email.ts

Steven Teye1b9def341a3
diff --git a/apps/web/lib/is-generic-email.ts b/apps/web/lib/is-generic-email.ts
index 8bf46ed5b4..c48e06183e 100644
--- a/apps/web/lib/is-generic-email.ts
+++ b/apps/web/lib/is-generic-email.ts
@@ -61,6 +61,8 @@ const GENERIC_EMAIL_DOMAIN_PREFIXES = [
"live.",
];
+const GENERIC_EMAIL_DOMAIN_SUFFIXES = [".edu.pl", ".edu.rs"];
+
export const isGenericEmail = (email: string) => {
const emailDomain = extractEmailDomain(email);
if (!emailDomain) {
@@ -71,6 +73,7 @@ export const isGenericEmail = (email: string) => {
GENERIC_EMAIL_DOMAINS.includes(emailDomain) ||
GENERIC_EMAIL_DOMAIN_PREFIXES.some((prefix) =>
emailDomain.startsWith(prefix),
- )
+ ) ||
+ GENERIC_EMAIL_DOMAIN_SUFFIXES.some((suffix) => emailDomain.endsWith(suffix))
);
};