Fixed Regex Check

This commit is contained in:
oesi
2016-12-05 14:50:07 +01:00
parent 2d6ef6abc4
commit e9be4ffd8c
+1 -1
View File
@@ -127,7 +127,7 @@ if(!$person->load($uid))
{
if(elem[i].name.match("^wunsch"))
{
if(!elem[i].value.match("[12]"))
if(!elem[i].value.match("^\-?[1-2]\d{0,0}$"))
error=true;
}
}