- Added LocalRegex, tweaked Regex debug output
[catagits/Catalyst-Runtime.git] / lib / Catalyst / DispatchType / Regex.pm
index 411cd4c..def40e8 100644 (file)
@@ -26,9 +26,8 @@ sub list {
     my ( $self, $c ) = @_;
     my $re = Text::SimpleTable->new( [ 36, 'Regex' ], [ 37, 'Private' ] );
     for my $regex ( @{ $self->{compiled} } ) {
-        my $compiled = $regex->{re};
         my $action   = $regex->{action};
-        $re->row( $compiled, "/$action" );
+        $re->row( $regex->{path}, "/$action" );
     }
     $c->log->debug( "Loaded Regex actions:\n" . $re->draw )
       if ( @{ $self->{compiled} } );