my $attrs = $action->attributes;
my @register = map { @{ $_ || [] } } @{$attrs}{ 'Regex', 'Regexp' };
foreach my $r (@register) {
+ unless ($r =~ /^\^/) { # Relative regex
+ $r = '^'.$action->namespace.'/'.$r;
+ }
$self->{paths}{$r} = $action; # Register path for superclass
push(
@{ $self->{compiled} }, # and compiled regex for us
$c->forward('TestApp::View::Dump::Request');
}
-sub two : Action Regexp('^action/regexp/(\d+)/(\w+)$') {
+sub two : Action Regexp('(\d+)/(\w+)$') {
my ( $self, $c ) = @_;
$c->forward('TestApp::View::Dump::Request');
}