diff --git a/lib/Cake/Utility/Validation.php b/lib/Cake/Utility/Validation.php index fa5f0e53a..e78a956cf 100644 --- a/lib/Cake/Utility/Validation.php +++ b/lib/Cake/Utility/Validation.php @@ -331,7 +331,7 @@ class Validation { $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);