projects
/
catagits/Web-Simple.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
allow subdispatch to apply even when the url has no trailing slash
[catagits/Web-Simple.git]
/
lib
/
Web
/
Dispatch
/
Parser.pm
diff --git
a/lib/Web/Dispatch/Parser.pm
b/lib/Web/Dispatch/Parser.pm
index
e3ea504
..
d77d418
100644
(file)
--- a/
lib/Web/Dispatch/Parser.pm
+++ b/
lib/Web/Dispatch/Parser.pm
@@
-138,6
+138,11
@@
sub _url_path_match {
};
push @path, $self->_url_path_segment_match($_)
or $self->_blam("Couldn't parse path match segment");
+ /\G\.\.\./gc
+ and do {
+ $end = '(.*)';
+ last PATH;
+ };
/\G\.\*/gc
and do {
$keep_dot = 1;