fixed ne regexpr
This commit is contained in:
parent
174539d53f
commit
c58e2ba0ea
|
@ -448,7 +448,7 @@ function get_preg($argument, $regexp) {
|
||||||
$pregexpr = '/^(\\+)*([0-9\\.\\ \\(\\)\\/-])*$/';
|
$pregexpr = '/^(\\+)*([0-9\\.\\ \\(\\)\\/-])*$/';
|
||||||
break;
|
break;
|
||||||
case "email":
|
case "email":
|
||||||
$pregexpr = '^(([0-9a-z\\._-])+[@]([0-9a-z-])+([.]([0-9a-z-])+)*)*$';
|
$pregexpr = '/^(([0-9a-z\\._-])+[@]([0-9a-z-])+([.]([0-9a-z-])+)*)*$/';
|
||||||
break;
|
break;
|
||||||
case "street": // Allow all letters, numbers, space and .-_
|
case "street": // Allow all letters, numbers, space and .-_
|
||||||
$pregexpr = '/^([[:alnum:]\\.\\ \\_-])*$/';
|
$pregexpr = '/^([[:alnum:]\\.\\ \\_-])*$/';
|
||||||
|
|
Loading…
Reference in New Issue