Changeset 29022 for trunk/include/functions_search.inc.php
- Timestamp:
- Jul 10, 2014, 11:00:12 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_search.inc.php
r28996 r29022 427 427 foreach ($range as $i =>&$val) 428 428 { 429 if (preg_match('/([0-9]{4})-?((?: 0?[0-9])|(?:1[0-2]))?-?(((?:0?[0-9])|(?:[1-3][0-9])))?/', $val, $matches))429 if (preg_match('/([0-9]{4})-?((?:1[0-2])|(?:0?[1-9]))?-?((?:(?:[1-3][0-9])|(?:0?[1-9])))?/', $val, $matches)) 430 430 { 431 431 array_shift($matches);
Note: See TracChangeset
for help on using the changeset viewer.