mirror of
https://github.com/typecho/typecho.git
synced 2025-01-17 20:48:42 +01:00
Merge pull request #780 from bestony/add-gmail-support
fix: Support plus in email address
This commit is contained in:
commit
df7aeda761
@ -209,7 +209,7 @@ class Typecho_Validate
|
||||
*/
|
||||
public static function email($str)
|
||||
{
|
||||
return preg_match("/^[_a-z0-9-\.]+@([-a-z0-9]+\.)+[a-z]{2,}$/i", $str);
|
||||
return preg_match("/^[_a-z0-9-\.+]+@([-a-z0-9]+\.)+[a-z]{2,}$/i", $str);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user