Skip to content

🐛 Bug Report: getRegisterable() did no validation format  #26

@louishot

Description

@louishot

👟 Reproduction steps

    $domain_check = new Domain($data['domain']);
    var_dump($domain_check->get());
    var_dump($domain_check->getTLD());
    var_dump($domain_check->getSuffix());
    var_dump($domain_check->getRegisterable());
    var_dump($domain_check->getName());
    var_dump($domain_check->getSub());
    var_dump($domain_check->isKnown());
    var_dump($domain_check->isICANN());
    var_dump($domain_check->isPrivate());
    var_dump($domain_check->isTest());die();
string(16) "www.test-8__.com"
string(3) "com"
string(3) "com"
string(12) "test-8__.com"
string(8) "test-8__"
string(3) "www"
bool(true)
bool(true)
bool(false)
bool(false)

👍 Expected behavior

test-8__.com is not valid for Register
I think should add $domain_check->isRootDomain() to check if is a valid domain with Registerable

👎 Actual Behavior

1

🎲 Utopia Domain version

Version 0.2.x

💻 Operating system

Linux

🐘 PHP Version

PHP 8.0

🧱 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 working

    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