fixed regex for Unix workstations

This commit is contained in:
Roland Gruber 2005-06-06 19:24:23 +00:00
parent 33617b1d8f
commit 7546f7efd2
1 changed files with 1 additions and 1 deletions

View File

@ -482,7 +482,7 @@ function get_preg($argument, $regexp) {
$pregexpr = '/^([a-z0-9\\.\\_-])+$/'; $pregexpr = '/^([a-z0-9\\.\\_-])+$/';
break; break;
case "unixhost": // Unix hosts case "unixhost": // Unix hosts
$pregexpr = '/^([a-z0-9\\.\\_-])*$/'; $pregexpr = '/^([a-z0-9,\\.\\_-])*$/';
break; break;
case 'digit2': // Same as digit but also -1 case 'digit2': // Same as digit but also -1
$pregexpr = '/^(([-][1])|([[:digit:]]*))$/'; $pregexpr = '/^(([-][1])|([[:digit:]]*))$/';