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 case-sensitive-short-links.ts

Kiran K779622ae91bf
diff --git a/apps/web/lib/api/case-sensitive-short-links.ts b/apps/web/lib/api/case-sensitive-short-links.ts
index a474198291..29fc405402 100644
--- a/apps/web/lib/api/case-sensitive-short-links.ts
+++ b/apps/web/lib/api/case-sensitive-short-links.ts
@@ -50,9 +50,7 @@ export const decodeKeyIfCaseSensitive = ({
domain,
key,
}: Pick<LinkProps, "domain" | "key">) => {
- const caseSensitive = CASE_SENSITIVE_DOMAINS.includes(domain);
-
- return caseSensitive ? decodeKey(key) : key;
+ return isCaseSensitiveDomain(domain) ? decodeKey(key) : key;
};
export const decodeLinkIfCaseSensitive = (link: any) => {