mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-17 21:44:23 +01:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user