mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
somtimes less is more ... do not confuse users with just doing nothing, just because he likes to type phonenumbers with an extra space
This commit is contained in:
parent
ec79d81130
commit
23cbfee599
@ -757,7 +757,7 @@
|
||||
* This format is somewhat loose, allowing for optional parenthesis, + sign,
|
||||
* and 0-7 numbers between separators.
|
||||
*/
|
||||
$regex = "/^[\s]*[\(]?[\+]?\d{0,7}[\s]?[\(]?[0-9]{0,7}[ ]?[\)]?[-]{0,7}[ ]?[0-9]{0,7}[ ]*[-]{0,7}[ ]*[0-9]{0,7}[ ]*$/x";
|
||||
$regex = "/^[-0-9\+\(\)\/]/";
|
||||
if(!preg_match($regex,$value))
|
||||
{
|
||||
$errors[] = array($field => $value);
|
||||
|
Loading…
Reference in New Issue
Block a user