mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
adapting regex for emailvalidation to accept single letter subdomains
This commit is contained in:
parent
be859fa1f6
commit
964e28a3d8
@ -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