X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FDispatchType%2FRegex.pm;h=49f763693b049175e44a5f2245af6520b68c2311;hp=b8c0d151ea8f27011fe4c47363545ef52af90d42;hb=4082e67814e85bc9820e56eb38e5e21511c0a5f8;hpb=b5ecfcf07b8ffe7e9984f0279c8781ce51c6ac6a diff --git a/lib/Catalyst/DispatchType/Regex.pm b/lib/Catalyst/DispatchType/Regex.pm index b8c0d15..49f7636 100644 --- a/lib/Catalyst/DispatchType/Regex.pm +++ b/lib/Catalyst/DispatchType/Regex.pm @@ -44,6 +44,7 @@ sub match { foreach my $compiled ( @{ $self->{compiled} || [] } ) { if ( my @snippets = ( $path =~ $compiled->{re} ) ) { + next unless $compiled->{action}->match($c); $c->req->action( $compiled->{path} ); $c->req->match($path); $c->req->snippets( \@snippets );