projects
/
catagits/Catalyst-Runtime.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Initial support for :Args attribute
[catagits/Catalyst-Runtime.git]
/
lib
/
Catalyst
/
DispatchType
/
Regex.pm
diff --git
a/lib/Catalyst/DispatchType/Regex.pm
b/lib/Catalyst/DispatchType/Regex.pm
index
b8c0d15
..
49f7636
100644
(file)
--- 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 );