mirror of
https://github.com/friendica/friendica
synced 2025-04-24 13:10:11 +00:00
Update and Remove isValidEmail
change function calls, and remove unneeded function.
This commit is contained in:
parent
11cec3229c
commit
e4354a0d7b
5 changed files with 4 additions and 16 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue