Skip to content

Commit

Permalink
fixed typo in introspection example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jul 31, 2014
1 parent 53b3831 commit 55f0c53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/Mojolicious/Guides/Routing.pod
Expand Up @@ -793,10 +793,10 @@ to list all available routes together with name and underlying regular
expressions.

$ ./myapp.pl routes -v
/foo/:name .... POST fooname ^/foo/^([^/\.]+)) ^/?(?:\.([^/]+))?$
/foo/:name .... POST fooname ^/foo/([^/\.]+) ^/?(?:\.([^/]+))?$
/bar B... * bar ^/bar
+/baz ...W GET baz ^/baz ^/?(?:\.([^/]+))?$
/yada .... * yada ^/yada ^/?(?:\.([^/]+))?$
+/baz ...W GET baz ^/baz ^/?(?:\.([^/]+))?$
/yada .... * yada ^/yada ^/?(?:\.([^/]+))?$

=head1 ADVANCED

Expand Down
4 changes: 2 additions & 2 deletions lib/Mojolicious/Routes/Pattern.pm
Expand Up @@ -122,10 +122,10 @@ sub _compile {
unshift @$placeholders, $value;

# Placeholder
if ($op eq 'placeholder') { $fragment = '([^\/\.]+)' }
if ($op eq 'placeholder') { $fragment = '([^/\.]+)' }

# Relaxed
elsif ($op eq 'relaxed') { $fragment = '([^\/]+)' }
elsif ($op eq 'relaxed') { $fragment = '([^/]+)' }

# Wildcard
elsif ($op eq 'wildcard') { $fragment = '(.+)' }
Expand Down

0 comments on commit 55f0c53

Please sign in to comment.