Skip to content

Commit

Permalink
Allow optional character = in domain syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Mireya Andres committed Oct 12, 2016
1 parent 1b321ec commit 955e03d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Phois/Whois/Whois.php
Original file line number Diff line number Diff line change
Expand Up @@ -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\-]{3,}$/", $tmp_domain)
&& !preg_match("/^-|-$/", $tmp_domain) //&& !preg_match("/--/", $tmp_domain)
) {
return true;
Expand Down

0 comments on commit 955e03d

Please sign in to comment.