Skip to content

Commit

Permalink
improved performance of route matching in Mojolicious::Routes::Pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 10, 2013
1 parent 4a12818 commit 7c78bca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Changes
@@ -1,7 +1,8 @@

4.46 2013-10-08
4.46 2013-10-10
- Changed default name for generated applications from MyMojoliciousApp to
MyApp.
- Improved performance of route matching in Mojolicious::Routes::Pattern.
- Improved HTML Living Standard compliance of Mojo::DOM::HTML.

4.45 2013-10-06
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Routes/Pattern.pm
Expand Up @@ -28,7 +28,7 @@ sub match_partial {

# Match
return undef unless my @captures = $$pathref =~ $regex;
$$pathref =~ s/$regex//;
$$pathref = $';

# Merge captures
my $captures = {%{$self->defaults}};
Expand Down

0 comments on commit 7c78bca

Please sign in to comment.