remove warning for undef captures
[catagits/Catalyst-Runtime.git] / t / lib / TestApp / Controller / Action / Regexp.pm
index e454cfd..cdb6abc 100644 (file)
@@ -13,4 +13,9 @@ sub two : Action LocalRegexp('^(\d+)/(\w+)$') {
     $c->forward('TestApp::View::Dump::Request');
 }
 
+sub three : Action LocalRegex('^(mandatory)(/optional)?$'){
+    my ( $self, $c ) = @_;
+    $c->forward('TestApp::View::Dump::Request');
+}
+
 1;