diff --git a/src/Phois/Whois/Whois.php b/src/Phois/Whois/Whois.php index 739de3c..b02e927 100644 --- a/src/Phois/Whois/Whois.php +++ b/src/Phois/Whois/Whois.php @@ -189,7 +189,7 @@ public function isValid() ) { $tmp_domain = strtolower($this->subDomain); if ( - preg_match("/^[a-z0-9\-]{3,}$/", $tmp_domain) + preg_match("/^[a-z0-9\-]{2,}$/", $tmp_domain) && !preg_match("/^-|-$/", $tmp_domain) //&& !preg_match("/--/", $tmp_domain) ) { return true;