Update email regex to allow & and other weird stuff

This commit is contained in:
Nathan Gray 2013-02-04 13:35:20 +00:00
parent 014f99c02b
commit a14d6d9bb4

View File

@ -21,7 +21,7 @@ class etemplate_widget_url extends etemplate_widget
/**
* Regexes for validating
*/
const EMAIL_PREG = '([a-z0-9][a-z0-9._-]*)?[a-z0-9_-]@([a-z0-9ÄÖÜäöüß](|[a-z0-9ÄÖÜäöüß_-]*[a-z0-9ÄÖÜäöüß])\.)+[a-z]{2,6}';
const EMAIL_PREG = '([a-z0-9][a-z0-9._\&\+-]*)?[a-z0-9_]@([a-z0-9ÄÖÜäöüß](|[a-z0-9ÄÖÜäöüß_-]*[a-z0-9ÄÖÜäöüß])\.)+[a-z]{2,6}';
/**
* Validate input