Closed hgl closed 3 years ago
Hey, can you check params.wild
-- wildcard globs are special-cased and written to wild
always (as seen in your final snippet)
Thanks for the quick response.
I just realized I was testing on trouter v2.0.1, since that's what the current stable version of polka depends on.
I'll check if it's still a problem on v3.
BTW, is it possible to update polka to use trouter v3?
Verified, problem doesn't exist on v3.
Polka@next is using trouter@3 -- trouter itself was breaking (use/wildcards were a big reason for it) however IIRC wildcards should still have their values sent to params.wild
params.wild doesn't exist on Polka@stable, only params['*'] does.
I'll check @next out, thanks a lot.
I'll leave the issue open for params.wild, feel free to close it.
Closing as this is working as expected in trouter@3
In this example
obj.params['*']
is"a"
, but I'd argue it should bea/b/c.js
.The example in
regexparam
's readme file also suggests it should bea/b/c.js
:outputs
Is the current value intended?