Update and Remove isValidEmail

change function calls, and remove unneeded function.
This commit is contained in:
Adam Magness 2018-11-09 13:18:42 -05:00
parent 11cec3229c
commit e4354a0d7b
5 changed files with 4 additions and 16 deletions

View file

@ -353,18 +353,6 @@ class Strings
return $ret;
}
/**
* @brief Check for a valid email string
*
* @param string $email_address Email address to be evaluated.
*
* @return boolean Value indicating whether or not the string is a valid email address.
*/
public static function isValidEmail($email_address)
{
return preg_match('/^[_a-zA-Z0-9\-\+]+(\.[_a-zA-Z0-9\-\+]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)+$/', $email_address);
}
/**
* @brief Normalize url
*