forked from extern/egroupware
adapting regex for emailvalidation to accept single letter subdomains
This commit is contained in:
parent
3401b0aeb4
commit
e5f45ae50c
@ -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]';
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user