add ** to capture unlimited path parts
[catagits/Web-Simple.git] / lib / Web / Simple / DispatchParser.pm
index 16d9bc5..e2b5166 100644 (file)
@@ -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 '([^/]+)';