Skip to content

Commit

Permalink
Disallow 5-digits years in hasFormat()
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls committed Aug 9, 2023
1 parent 028ef2a commit 2675cea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Carbon/Traits/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ trait Options
'n' => '(1[012]|[1-9])',
't' => '(2[89]|3[01])',
'L' => '(0|1)',
'o' => '([1-9][0-9]{0,4})',
'Y' => '([1-9]?[0-9]{4})',
'y' => '([0-9]{2})',
'o' => '([0-9]{1,4})',
'Y' => '([0-9]{1,4})',
'y' => '([0-9]{1,2})',
'a' => '(am|pm)',
'A' => '(AM|PM)',
'B' => '([0-9]{3})',
Expand Down

0 comments on commit 2675cea

Please sign in to comment.