added user/groupNameList
This commit is contained in:
parent
88d104d444
commit
7c49bb5aad
|
@ -434,6 +434,10 @@ function get_preg($argument, $regexp) {
|
|||
case 'username': // first character must be a letter. All letters, numbers, space and ._- are allowed characters
|
||||
$pregexpr = '/^[[:alpha:]]([[:alnum:]\\.\\ \\_-])*$/';
|
||||
break;
|
||||
case 'usernameList': // comma separated list of user names
|
||||
case 'groupnameList': // comma separated list of group names
|
||||
$pregexpr = '[[:alpha:]]([[:alnum:]\\.\\ \\_-])(,[[:alpha:]]([[:alnum:]\\.\\ \\_-]))*';
|
||||
break;
|
||||
case 'hostname': // first character must be letter, last must be $. Only normal letters, numbers and ._- are allowed
|
||||
$pregexpr = '/^[a-zA-Z]([a-zA-Z0-9\\.\\_-])*\\$$/';
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue