allow numbers in first/last name

This commit is contained in:
Roland Gruber 2005-11-10 16:16:20 +00:00
parent d067af1190
commit 7458053b5e
1 changed files with 1 additions and 1 deletions

View File

@ -466,7 +466,7 @@ function get_preg($argument, $regexp) {
$pregexpr = '/^[a-zA-Z]([a-zA-Z0-9\\.\\_-])*\\$$/u';
break;
case 'realname': // Allow all letters, space and .-_
$pregexpr = '/^[[:alpha:]]([[:alpha:]\\.\\ \\_-])*$/u';
$pregexpr = '/^[[:alnum:]]([[:alnum:]\\.\\ \\_-])*$/u';
break;
case "telephone": // Allow numbers, space, brackets, /-+.
$pregexpr = '/^(\\+)*([0-9\\.\\ \\(\\)\\/-])*$/';