This commit is contained in:
Darshan committed 2025-05-22 17:15:10 +05:30
1 parent f5501f30a5
commit b18aa1ccb5
1 file changed
+1 -1
+1 -1
View File
@@ -3,7 +3,7 @@ import { parse } from 'tldts';
/**
* Returns the apex/root domain from a full domain string.
*/
export function getApexDomain(domain: string): string|null {
export function getApexDomain(domain: string): string | null {
return parse(domain).domain;
}