fix(extractIdentifier): only return value if it has a domain

before this commit, if the value was  it would be true
This commit is contained in:
P. Reis 2024-10-26 18:50:42 -03:00
parent 2b4efd6a03
commit bbd692c58f

View file

@ -83,7 +83,7 @@ export function extractIdentifier(value: string): string | undefined {
return value; return value;
} }
if (tldts.parse(value).isIcann) { if (tldts.parse(value).isIcann && tldts.parse(value).domain) {
return value; return value;
} }
} }