Permalink
Browse files

Merge pull request #780 from bestony/add-gmail-support

fix: Support plus in email address
  • Loading branch information...
joyqi committed Sep 7, 2018
2 parents c2a71c2 + 2a8b11f commit df7aeda761a5897b90370ae3d2f5cfc74bed67a7
Showing with 1 addition and 1 deletion.
  1. +1 −1 var/Typecho/Validate.php
View
@@ -209,7 +209,7 @@ public static function maxLength($str, $length)
*/
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);
}
/**

0 comments on commit df7aeda

Please sign in to comment.