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

can't recognise path with minus #89

Closed
lookis opened this issue Sep 23, 2016 · 1 comment
Closed

can't recognise path with minus #89

lookis opened this issue Sep 23, 2016 · 1 comment

Comments

@lookis
Copy link

lookis commented Sep 23, 2016

version: 1.5.3

like this:
/path-to-regexp/:path-to-regexp

@blakeembrey
Copy link
Member

Can you provide more detail on what "can't recognise path with minus" means? It looks like you were trying to use a dash for the parameter name. If you check the documentation, it states that you can only use word characters ([A-Za-z0-9_] - https://github.com/pillarjs/path-to-regexp#named-parameters).

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

2 participants