Hi
I'm currently building an R binding for path-tree and during testing I came to the realisation that my understanding of the :name? pattern is flawed, or the implementation broken.
What I observe:
comparing /test/:me and /test/:me?, only the latter matches to /test/ which is what I would expect.
comparing /test/:me/now and /test/:me?/now, none of them matches to /test/now and both matches to /test//now. I would assume the latter would match to /test/now, or the former wouldn't match to /test//now but they seem identical
is this a bug, or if not, what is the differentiator for the two patterns?
Hi
I'm currently building an R binding for path-tree and during testing I came to the realisation that my understanding of the
:name?pattern is flawed, or the implementation broken.What I observe:
comparing
/test/:meand/test/:me?, only the latter matches to/test/which is what I would expect.comparing
/test/:me/nowand/test/:me?/now, none of them matches to/test/nowand both matches to/test//now. I would assume the latter would match to/test/now, or the former wouldn't match to/test//nowbut they seem identicalis this a bug, or if not, what is the differentiator for the two patterns?