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
if you define a pattern with 3 optional parameters and you supply the 1st and the 3rd the order is mixed up.
eg : /:lorem:/:ipsum:/:dolor:
matched against /lorem//dolor
will map lorem to lorem,
ipsum to dolor
and dolor to undefined.
i would expect ipsum to be undefined and dolor to be dolor.
Although using a :?parameter: would make more sense if you have 3 optional ones.
Not sure how this is going to be handled here, but on every other routing framework I've seen out there, any optional path parameters were only allowed in the end of the URL.
Hi,
if you define a pattern with 3 optional parameters and you supply the 1st and the 3rd the order is mixed up.
eg : /:lorem:/:ipsum:/:dolor:
matched against /lorem//dolor
will map lorem to lorem,
ipsum to dolor
and dolor to undefined.
i would expect ipsum to be undefined and dolor to be dolor.
Although using a :?parameter: would make more sense if you have 3 optional ones.
i wrote a test in the lexer.spec.js that fails:
but i did not come up with a fix yet.
Best regards,
Tobias
The text was updated successfully, but these errors were encountered: