You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For this format, the generated regex is ([1-9]?[0-9]{4}).(1[012]|0[1-9]).(3[01]|[12][0-9]|0[1-9]) where the problem is the . between the parts, instead of \., which will pass everything on that places.
Hello,
I encountered an issue with the following code:
Carbon version: 2.39.1
PHP version: 7.4.9
I expected to get:
But I actually get:
For this format, the generated regex is
([1-9]?[0-9]{4}).(1[012]|0[1-9]).(3[01]|[12][0-9]|0[1-9])
where the problem is the.
between the parts, instead of\.
, which will pass everything on that places.Carbon/src/Carbon/Traits/Comparison.php
Lines 859 to 887 in 7af4678
Thanks!
The text was updated successfully, but these errors were encountered: