minmod
This commit is contained in:
parent
174ed80059
commit
3b8705b1c8
|
@ -101,13 +101,9 @@
|
|||
break;
|
||||
|
||||
case 'alphanumeric':
|
||||
case 'user.username':
|
||||
case 'group.name':
|
||||
return $checker && is_string($value) && preg_match('/^[\w-]+$/i', $value);
|
||||
return $checker && is_string($value) && preg_match('/^[\w\.-]+$/i', $value);
|
||||
break;
|
||||
|
||||
case 'user.firstname':
|
||||
case 'user.lastname':
|
||||
case 'letters':
|
||||
return $checker && is_string($value) && preg_match('/^[a-z -]+$/i', $value);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue