On Fri, 2019-02-22 at 12:05 +0100, Marco Lettere wrote:
> (: Matches anything followed by /input :)
> declare %rest:path("app/{$path=.+}/input")
>function page:inputs($path) { ... };
>
> (: Matches all other all paths starting with "app/" :)
> declare %rest:path("app/{$path=.+}")
>
Hello there Marco,
This might be down to the choice of regex.
Assume $path = "path"
app/{$path=.+}
Will match
"app/path=1234"
And
"app/path=1234/input"
Which I think would be matched by ".+" part of the expression, as "/input"
would match ".+".
Kind regards
On Sat, 23 Feb 2019, 11:00 ,
2 matches
Mail list logo