fixed regex for Unix workstations
This commit is contained in:
parent
33617b1d8f
commit
7546f7efd2
|
@ -482,7 +482,7 @@ function get_preg($argument, $regexp) {
|
|||
$pregexpr = '/^([a-z0-9\\.\\_-])+$/';
|
||||
break;
|
||||
case "unixhost": // Unix hosts
|
||||
$pregexpr = '/^([a-z0-9\\.\\_-])*$/';
|
||||
$pregexpr = '/^([a-z0-9,\\.\\_-])*$/';
|
||||
break;
|
||||
case 'digit2': // Same as digit but also -1
|
||||
$pregexpr = '/^(([-][1])|([[:digit:]]*))$/';
|
||||
|
|
Loading…
Reference in New Issue