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
{{ message }}
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
I ran into troubles thinking I didn't understand the PCRE-based Route Patterns well enough. But after following the example from the linked docs page and debugging them, it seems the route is not working as expected (or, as the docs say they should work).
Using this example from the docs as my starting point:
I'm following the docs for Optional Route Subpatterns here: https://leafphp.dev/docs/routing/sub-patterns.html
I ran into troubles thinking I didn't understand the PCRE-based Route Patterns well enough. But after following the example from the linked docs page and debugging them, it seems the route is not working as expected (or, as the docs say they should work).
Using this example from the docs as my starting point:
I modified it to debug:
The following urls produce these results:
/blog/2024/6/2/slug
/blog/2024/6/2
The first example works, but the second does not return the day value.
Am I doing something wrong or is this a bug?
router/src/Router/Core.php
Line 381 in dc37447
The text was updated successfully, but these errors were encountered: