mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00: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:
parent
2b4efd6a03
commit
bbd692c58f
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue