"allow one-letter name/mailbox part in an email address"

This commit is contained in:
Ralf Becker 2009-05-15 07:35:58 +00:00
parent a083233c43
commit f4b09d620f

View File

@ -61,7 +61,7 @@ class url_widget
*
* has to be used case insensitive: /i
*/
const EMAIL_PREG = '[a-z0-9][a-z0-9._-]*[a-z0-9]@(([a-z0-9]*[a-z0-9]\.)|([a-z0-9][a-z0-9_-]*[a-z0-9]\.))+[a-z0-9][a-z0-9_-]*[a-z0-9]';
const EMAIL_PREG = '([a-z0-9][a-z0-9._-]*)?[a-z0-9]@(([a-z0-9]*[a-z0-9]\.)|([a-z0-9][a-z0-9_-]*[a-z0-9]\.))+[a-z0-9][a-z0-9_-]*[a-z0-9]';
/**
* pre-processing of the extension