allow letters in telephone number

This commit is contained in:
Roland Gruber 2006-06-29 11:24:55 +00:00
parent fec99f7dde
commit 5c96801e81
1 changed files with 2 additions and 2 deletions

View File

@ -467,8 +467,8 @@ function get_preg($argument, $regexp) {
case 'cn':
$pregexpr = '/^[^\\\<>=\\$\\?]+(\\$)?$/';
break;
case "telephone": // Allow numbers, space, brackets, /-+.
$pregexpr = '/^(\\+)*([0-9\\.\\ \\(\\)\\/-])*$/';
case "telephone": // Allow letters, numbers, space, brackets, /-+.
$pregexpr = '/^(\\+)*([0-9a-zA-Z\\.\\ \\(\\)\\/-])*$/';
break;
case "email":
$pregexpr = '/^([0-9a-zA-Z\\._-])+[@]([0-9a-zA-Z-])+([.]([0-9a-zA-Z-])+)*$/';