changed check for NIS recipient
This commit is contained in:
parent
e4f99e4180
commit
d189ee9e00
|
@ -399,6 +399,7 @@ function get_preg($argument, $regexp) {
|
||||||
case "telephone": // Allow letters, numbers, space, brackets, /-+.
|
case "telephone": // Allow letters, numbers, space, brackets, /-+.
|
||||||
$pregexpr = '/^(\\+)*([0-9a-zA-Z\\.\\ \\(\\)\\/-])*$/';
|
$pregexpr = '/^(\\+)*([0-9a-zA-Z\\.\\ \\(\\)\\/-])*$/';
|
||||||
break;
|
break;
|
||||||
|
case 'nis_recipient':
|
||||||
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-])+)*$/';
|
||||||
break;
|
break;
|
||||||
|
@ -459,9 +460,6 @@ function get_preg($argument, $regexp) {
|
||||||
case 'nis_alias':
|
case 'nis_alias':
|
||||||
$pregexpr = '/^([[:alnum:]@\\.\\ \\_-])+$/u';
|
$pregexpr = '/^([[:alnum:]@\\.\\ \\_-])+$/u';
|
||||||
break;
|
break;
|
||||||
case 'nis_recipient':
|
|
||||||
$pregexpr = '/^([[:alnum:]@\\.\\ \\_-])+$/u';
|
|
||||||
break;
|
|
||||||
case 'country': // Allow all letters and space
|
case 'country': // Allow all letters and space
|
||||||
$pregexpr = '/^[[:alpha:]]([[:alpha:] ])+$/u';
|
$pregexpr = '/^[[:alpha:]]([[:alpha:] ])+$/u';
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue