Skip to content

🐛 Bug Report: getSuffix() empty for some domains #22

@fadedshadowx

Description

@fadedshadowx

👟 Reproduction steps

This occurs for domains with * in the suffix list: https://publicsuffix.org/list/public_suffix_list.dat
for example:

$domain = new Domain('example.com.jm');
$domain->getSuffix();

👍 Expected behavior

"com.jm"

👎 Actual Behavior

"" (empty)

🎲 Utopia Domain version

Version 0.2.x

💻 Operating system

Linux

🐘 PHP Version

PHP 7.4.x

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions