Fixed invalid regex pattern in is_valid_email
This commit is contained in:
parent
a1d321e79a
commit
a18d5ccef8
1 changed files with 1 additions and 1 deletions
|
@ -413,7 +413,7 @@
|
|||
*/
|
||||
|
||||
function is_valid_email($email) {
|
||||
$pattern = "/^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/";
|
||||
$pattern = "/^([\w\-\.]+@([\w\-]+\.)+[\w\-]{2,4})?$/";
|
||||
if(preg_match($pattern, $email)) {
|
||||
return true;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue