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
Hi guys,
I have this route:
router.get('/service/:parameter([a-z\\d-. ]+)', function(req, res) { res.json({param: req.params.parameter}); });
My problem is when I try in the browser something with space in parameter, I get 404. Anything else works. I tried using \\s instead of space.
parameter
\\s
Any help will be appreciate.
The text was updated successfully, but these errors were encountered:
Regular expressions match on the URL and since it is impossible to have a space in your URL, it will never match. You have to match against %20.
Basically a duplicate of #2511
Sorry, something went wrong.
Thanks @dougwilson 👍
dougwilson
No branches or pull requests
Hi guys,
I have this route:
My problem is when I try in the browser something with space in
parameter
, I get 404. Anything else works. I tried using\\s
instead of space.Any help will be appreciate.
The text was updated successfully, but these errors were encountered: