allow letters in telephone number
This commit is contained in:
parent
fec99f7dde
commit
5c96801e81
|
@ -467,8 +467,8 @@ function get_preg($argument, $regexp) {
|
||||||
case 'cn':
|
case 'cn':
|
||||||
$pregexpr = '/^[^\\\<>=\\$\\?]+(\\$)?$/';
|
$pregexpr = '/^[^\\\<>=\\$\\?]+(\\$)?$/';
|
||||||
break;
|
break;
|
||||||
case "telephone": // Allow numbers, space, brackets, /-+.
|
case "telephone": // Allow letters, numbers, space, brackets, /-+.
|
||||||
$pregexpr = '/^(\\+)*([0-9\\.\\ \\(\\)\\/-])*$/';
|
$pregexpr = '/^(\\+)*([0-9a-zA-Z\\.\\ \\(\\)\\/-])*$/';
|
||||||
break;
|
break;
|
||||||
case "email":
|
case "email":
|
||||||
$pregexpr = '/^([0-9a-zA-Z\\._-])+[@]([0-9a-zA-Z-])+([.]([0-9a-zA-Z-])+)*$/';
|
$pregexpr = '/^([0-9a-zA-Z\\._-])+[@]([0-9a-zA-Z-])+([.]([0-9a-zA-Z-])+)*$/';
|
||||||
|
|
Loading…
Reference in New Issue