MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / getCustomMultiPartTLDs

Function getCustomMultiPartTLDs

packages/auth/parse-cookie-domain.ts:15–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13];
14
15function getCustomMultiPartTLDs(): string[] {
16 const envValue = process.env.COOKIE_TLDS || '';
17 if (!envValue.trim()) {
18 return [];
19 }
20 return envValue
21 .split(',')
22 .map((tld) => tld.trim().toLowerCase())
23 .filter((tld) => tld.length > 0);
24}
25
26function isMultiPartTLD(potentialTLD: string): boolean {
27 if (MULTI_PART_TLDS.some((pattern) => pattern.test(potentialTLD))) {

Callers 1

isMultiPartTLDFunction · 0.85

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected