Skip to content

Commit

Permalink
Fix whitespace error.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Dec 17, 2013
1 parent 01be15d commit 44b7d01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Utility/Validation.php
Expand Up @@ -331,7 +331,7 @@ public static function date($check, $format = 'ymd', $regex = null) {
$separator . '((1[6-9]|[2-9]\\d)\\d{2})$%';

$regex['my'] = '%^(' . $month . $separator . $year . ')$%';
$regex['ym'] = '%^(' . $year . $separator . $month . ')$%';
$regex['ym'] = '%^(' . $year . $separator . $month . ')$%';
$regex['y'] = '%^(' . $fourDigitYear . ')$%';

$format = (is_array($format)) ? array_values($format) : array($format);
Expand Down

0 comments on commit 44b7d01

Please sign in to comment.