-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
ArgumentError with regexp route with optional capture group #1332
Milestone
Comments
I'm going to take a look at the issue in a few days. |
@dometto Ping? I've tried to reproduce your issue, but cannot be reproduced in my locally. |
I've encountered a similar issue using Sinatra 1.4.8 using a regex route:
Stacktrace:
|
Resolved my issue by ensuring that the route regex capture group is non-capturing: Working:
Non-working:
|
namusyaka
added a commit
that referenced
this issue
Feb 6, 2018
Add pattern matches to values for Mustermann::Concat. Fixes #1332
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have the following route definition:
The regexp allows for an optional capture group. In
sinatra v1.4
, this would work as expected. At present, I am getting anArgumentError: wrong number of arguments (given 0, expected 1)
. Backtrace:The text was updated successfully, but these errors were encountered: