From bbd692c58f6ebc472518189a06870c7e30fa830f Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Sat, 26 Oct 2024 18:50:42 -0300 Subject: [PATCH] fix(extractIdentifier): only return value if it has a domain before this commit, if the value was it would be true --- src/utils/lookup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/lookup.ts b/src/utils/lookup.ts index 29133f80..e8b90ec6 100644 --- a/src/utils/lookup.ts +++ b/src/utils/lookup.ts @@ -83,7 +83,7 @@ export function extractIdentifier(value: string): string | undefined { return value; } - if (tldts.parse(value).isIcann) { + if (tldts.parse(value).isIcann && tldts.parse(value).domain) { return value; } }