You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As an example, if I use the following code, this addresses does not pass the validator :
public static function ValidateAddress($address) {
if(filter_var($address, FILTER_VALIDATE_EMAIL) === false) {
return false;
}
// We only check the presence of a dot on the domain part
$components = explode("@", $address);
$domain = $components[1];
if (strpos($domain, ".") === false) {
return false;
}
return true;
}
The text was updated successfully, but these errors were encountered:
têst@github.com
pass the validatorIt should pass the validator.
As an example, if I use the following code, this addresses does not pass the validator :
The text was updated successfully, but these errors were encountered: