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

Optional path segments before static path segments should be an error #37

Open
tylerstillwater opened this issue Jul 10, 2013 · 1 comment
Labels

Comments

@tylerstillwater
Copy link
Contributor

Having /something/[optional]/else currently works, but makes no sense. An optional segment should not be allowed to appear before a static segment.

@matryer
Copy link
Member

matryer commented Jul 10, 2013

Can you write a test to see what it matches?

I have a feeling it will ignore the "else" bit entirely - in which case we should throw an error.

Sent from my iPhone

On 10 Jul 2013, at 16:33, Tyler [email protected] wrote:

Having /something/[optional]/else currently works, but makes no sense. An optional segment should not be allowed to appear before a static segment.


Reply to this email directly or view it on GitHub.

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

No branches or pull requests

2 participants