Closed SiebeVE closed 5 years ago
I have a use case were I check a hostname but don't want to check the tld,
$validator = new \Zend\Validator\Hostname([ 'useTldCheck' => false, 'allow' => $allow, ]); $validator->isValid('unvalid_domain.be'); // true
This results in true, but this should be false.
I have a use case were I check a hostname but don't want to check the tld,
This results in true, but this should be false.