We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello
i have a problem with the params in the url (express v 4.12.3):
var express = require('express'); var app = express(); app.get('*/test/:id/status', function (req, res) { res.send(req.params); }); app.listen(3000);
When requesting with the url: http://localhost:3000/a/b/d/test/theId/status
the output will be:
{ '0': 'theId', id: '/a/b/d' }
The wildcard will be assign to the param id.
Kind regards, Dennis
The text was updated successfully, but these errors were encountered:
I tested this issue too, with version 4.12.2, result is the same. Probably first * symbol makes url parser doing wrong, i'll try to check URL parser.
Sorry, something went wrong.
Added failing test case for expressjs#2617
0e9fcc8
3512caa
fixes greedy wildcards expressjs#2617 expressjs#2637
b444ef7
We are having issues with the proposed fix if anyone wants to help out fixing the bug in path-to-regexp. Some details over at #2637 (comment)
path-to-regexp
60e2008
dougwilson
No branches or pull requests
Hello
i have a problem with the params in the url (express v 4.12.3):
When requesting with the url:
http://localhost:3000/a/b/d/test/theId/status
the output will be:
The wildcard will be assign to the param id.
Kind regards,
Dennis
The text was updated successfully, but these errors were encountered: