fixed regex for date
This commit is contained in:
parent
1f39a7607c
commit
2c79564a0d
|
@ -489,7 +489,7 @@ function get_preg($argument, $regexp) {
|
|||
$pregexpr = '/^[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}$/';
|
||||
break;
|
||||
case 'date':
|
||||
$pregexpr = '/^((0[1-9])|([1-2][0-9])|30|31)\\-((0[1-9])|(1[1-2]))\\-[1-3][0-9][0-9][0-9]$/';
|
||||
$pregexpr = '/^((0[1-9])|([1-2][0-9])|30|31)\\-((0[1-9])|(1[0-2]))\\-[1-3][0-9][0-9][0-9]$/';
|
||||
break;
|
||||
}
|
||||
if ($pregexpr!='')
|
||||
|
|
Loading…
Reference in New Issue