Skip to content

Commit

Permalink
be more specific about slash handling
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 4, 2015
1 parent 53fc92c commit edac2ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojolicious/Guides/Routing.pod
Expand Up @@ -456,8 +456,8 @@ the regular expression C<([^/.]+)?>.
# /test/bye/123 -> {controller => 'foo', action => 'bar', mymessage => 'bye'}
$r->get('/test/:mymessage/123')->to('foo#bar', mymessage => 'hi');

This is also the case if multiple placeholders are right after another and not
separated by other characters than C</>.
And if two optional placeholders are only separated by a slash, that slash can
become optional as well.

# / -> {controller => 'foo', action => 'bar'}
# /users -> {controller => 'users', action => 'bar'}
Expand Down

0 comments on commit edac2ea

Please sign in to comment.