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, /-+.
|
||||
$pregexpr = '/^(\\+)*([0-9a-zA-Z\\.\\ \\(\\)\\/-])*$/';
|
||||
break;
|
||||
case 'nis_recipient':
|
||||
case "email":
|
||||
$pregexpr = '/^([0-9a-zA-Z+\\/\\._-])+[@]([0-9a-zA-Z-])+([.]([0-9a-zA-Z-])+)*$/';
|
||||
break;
|
||||
|
@ -459,9 +460,6 @@ function get_preg($argument, $regexp) {
|
|||
case 'nis_alias':
|
||||
$pregexpr = '/^([[:alnum:]@\\.\\ \\_-])+$/u';
|
||||
break;
|
||||
case 'nis_recipient':
|
||||
$pregexpr = '/^([[:alnum:]@\\.\\ \\_-])+$/u';
|
||||
break;
|
||||
case 'country': // Allow all letters and space
|
||||
$pregexpr = '/^[[:alpha:]]([[:alpha:] ])+$/u';
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue