summary refs log tree commit diff
path: root/lib/MooseX/Net/API/Meta
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/MooseX/Net/API/Meta/Method.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/MooseX/Net/API/Meta/Method.pm b/lib/MooseX/Net/API/Meta/Method.pm
index ddd84f9..d2c9ab1 100644
--- a/lib/MooseX/Net/API/Meta/Method.pm
+++ b/lib/MooseX/Net/API/Meta/Method.pm
@@ -198,10 +198,10 @@ sub _build_path {
             $path =~ s/(?:\$|:)$match/$value/;
         }
         if ($max_iter > $i) {
-            $path =~ s/(?:\/)?(?:$|:)(?:.*)$//;
+            $path =~ s/(?:\/?(?:$|:).*)$//;
         }
     }
-    $path =~ s/(?:\/)?(?:$|:)(?:.*)$//;
+    $path =~ s/(?:\/?(?:$|:).*)$//;
     return $path;
 }