Ticket Details

Custom regex subpattern support in routes

RFC Ticket (closed)

Currently, the `{:id}` part of `"/users/view/{:id}"` cannot be matched against a custom regular expression. The syntax to do this will be: `{:id:\d+}`, i.e.:

{{{
Router::connect("/{:controller}/{:action}/{:id:\d+}", ...);
}}}

Currently, `http\Route` correctly parses these patterns out into the `$_subPatterns` property, but these sub-patterns are not inserted when calculating the final route regular expression.

This needs to be implemented and tested.
on 10.29.09 reported by: nate owned by: nate

Updates

on 11.01.09 by gwoo
  • version was changed to lithium-0.2
on 11.11.09 by nate
  • owner was changed to nate
http://rad-dev.org/forks/jlogsdon/lithium/commits/view/2e37068c5fdf8a46b57d04cbb4efa6b11b580eb2
(fixed) on 11.13.09 by nate
  • status was changed to closed
  • resolution was changed to fixed
Fixed in [86c84f0941bd2412b0ca7db48eb03c845b7af249].