From 206963c19a1a6ba57ddf129bc0ce52e1dbe5eacf Mon Sep 17 00:00:00 2001 From: Carey Metcalfe Date: Wed, 18 Mar 2020 14:24:35 -0400 Subject: [PATCH] Fix documentation of named wildcards The docs were updated in the README by #506, but the gh-pages site is still incorrect. Fixes #338 --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index efa4e21..03b4d22 100644 --- a/index.html +++ b/index.html @@ -468,7 +468,7 @@

Named wildcard accessed, for example /file/javascripts/jquery.js would provide "/javascripts/jquery.js" as ctx.params.file:

-
page('/file/:file(*)', loadUser)
+
page('/file/:file(.*)', loadUser)

And of course RegExp literals, where the capture groups are available via ctx.params[N] where N