projects
/
catagits/Web-Simple.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
add ** to capture unlimited path parts
[catagits/Web-Simple.git]
/
lib
/
Web
/
Simple
/
DispatchParser.pm
diff --git
a/lib/Web/Simple/DispatchParser.pm
b/lib/Web/Simple/DispatchParser.pm
index
16d9bc5
..
e2b5166
100644
(file)
--- a/
lib/Web/Simple/DispatchParser.pm
+++ b/
lib/Web/Simple/DispatchParser.pm
@@
-107,6
+107,9
@@
sub _url_path_segment_match {
# word chars only -> exact path part match
/\G(\w+)/gc and
return "\Q$1";
+ # ** -> capture unlimited path parts
+ /\G\*\*/gc and
+ return '(.*?[^/])';
# * -> capture path part
/\G\*/gc and
return '([^/]+)';