-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
bugSomething isn't workingSomething isn't working
Description
👟 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?
- I have read the Code of Conduct
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working