This project is archived and is in readonly mode.
Regexp routing problems in 2.2.2 since 2.1.0
-
DHH
- Assigned user set to Michael Koziarski
-
Andrew White
- Tag set to actioncontroller, actionpack, patch, routing
The cause of this is that ControllerSegment is hard coded to return number of captures as 1 and it wraps the regexp in its own set of parentheses.
Attached is a patch to fix this (test included). There's a related ticket that fixes a similar bug with path segments as well.
-
Wildgoose
Thankyou - much appreciated. Any chance we might see this in the next release?
-
Michael Koziarski
- Milestone cleared.
-
Repository
- State changed from new to committed
(from [f7a0a394f48a0f21e686f891546d17ce33c7840e]) Remove hardcoded number_of_capturesin ControllerSegment to allow regexp requirements with capturing parentheses
Signed-off-by: Michael Koziarski michael@koziarski.com [#1887 Regexp routing problems in 2.2.2 since 2.1.0 state:committed] http://github.com/rails/rails/co...
