X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FWeb%2FSimple%2FDispatchParser.pm;h=e2b5166ed925c907f8e585be011994ff742da1c9;hb=28f3dfd5d6dca8509d08a44536070e53f561e0dd;hp=16d9bc55d2d07ffe359d9c8a403d665ca3ef0628;hpb=913a9cf9e419b2f6a5155f94b7869de825ef20d6;p=catagits%2FWeb-Simple.git diff --git a/lib/Web/Simple/DispatchParser.pm b/lib/Web/Simple/DispatchParser.pm index 16d9bc5..e2b5166 100644 --- 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 '([^/]+)';