Skip to content
New issue

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

Unescaped backslashes still work #7

Closed
ki9us opened this issue Mar 18, 2016 · 1 comment
Closed

Unescaped backslashes still work #7

ki9us opened this issue Mar 18, 2016 · 1 comment

Comments

@ki9us
Copy link

ki9us commented Mar 18, 2016

According to the path-to-regexp docs, "Backslashes need to be escaped in strings."

But the tester works if I put in something like \d for route and 4 for path. It should only work with \\d, which doesn't work at all. But that's how it is in real express.js routing.

@wesleytodd
Copy link
Contributor

express@4 uses [email protected] and this was using [email protected]. So they will work different. If #11 merges, then you can test to actual express version. In the mean time, you can use https://wesleytodd.github.io/express-route-tester/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants