This commit is contained in:
xdrm-brackets 2016-07-08 19:55:48 +02:00
parent e826d3c0d7
commit 8e0454e460
1 changed files with 1 additions and 5 deletions

View File

@ -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;