Subject: | Basic Path dispatches don't work (patch attached) |
When using a basic Path attribute like:
Path('/add') it won't match due to a regexp that requires more
information than that to match.
I've made the regexp a little less greedy in this patch against
ActionDispatch.pm version 0.90
Thanks for a great module,
Clayton Scott
Subject: | CGI-Application-Plugin-ActionDispatch.patch |
--- ActionDispatch.pm.orig 2007-11-06 14:57:38.000000000 -0500
+++ ActionDispatch.pm 2007-11-06 14:59:08.000000000 -0500
@@ -22,7 +22,7 @@
$data = "/" . $data;
}
- my $regex = qr/^$data\/?(\/.*)$/;
+ my $regex = qr/^$data\/?(\/.*)?$/;
push(@{ $_attr_cache{$attr} }, [ $referent, $regex ]);
}