mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-22 21:30:54 +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
|
* 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
|
* pre-processing of the extension
|
||||||
|
Loading…
Reference in New Issue
Block a user