(potentialTLD: string)
| 24 | } |
| 25 | |
| 26 | function isMultiPartTLD(potentialTLD: string): boolean { |
| 27 | if (MULTI_PART_TLDS.some((pattern) => pattern.test(potentialTLD))) { |
| 28 | return true; |
| 29 | } |
| 30 | |
| 31 | const customTLDs = getCustomMultiPartTLDs(); |
| 32 | return customTLDs.includes(potentialTLD.toLowerCase()); |
| 33 | } |
| 34 | |
| 35 | export const parseCookieDomain = (url: string) => { |
| 36 | if (process.env.CUSTOM_COOKIE_DOMAIN) { |
no test coverage detected