fixed regex for date

This commit is contained in:
Roland Gruber 2004-11-19 14:25:30 +00:00
parent 1f39a7607c
commit 2c79564a0d
1 changed files with 1 additions and 1 deletions

View File

@ -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!='')