Skip to content

isIcann returns true or false when there's no valid extension #2371

@seahindeniz

Description

@seahindeniz
parse('https://google.');

// returns
{
    "domain": null,
    "domainWithoutSuffix": null,
    "hostname": "google",
    "isIcann": true, // incorrect
    "isIp": false,
    "isPrivate": false,
    "publicSuffix": "google",
    "subdomain": null
}
parse('https://googles.');

// returns
{
    "domain": null,
    "domainWithoutSuffix": null,
    "hostname": "googles",
    "isIcann": false, // correct
    "isIp": false,
    "isPrivate": false,
    "publicSuffix": "googles",
    "subdomain": null
}

"tldts": "7.0.9",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions