summary refs log tree commit diff
path: root/lib/MooseX
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-06-04 10:15:45 +0200
committerfranck cuny <franck@lumberjaph.net>2010-06-04 10:15:45 +0200
commit6685b87533d35500ecba3cb72be78bd2f366e9c4 (patch)
tree68fa4d1b8047581a8c91262c49647072b79aede6 /lib/MooseX
parentupdate dist.ini (diff)
downloadmoosex-net-api-6685b87533d35500ecba3cb72be78bd2f366e9c4.tar.gz
fix bug whit remaining params in url
Diffstat (limited to 'lib/MooseX')
-rw-r--r--lib/MooseX/Net/API/Meta/Method.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/MooseX/Net/API/Meta/Method.pm b/lib/MooseX/Net/API/Meta/Method.pm
index 62b4869..521a802 100644
--- a/lib/MooseX/Net/API/Meta/Method.pm
+++ b/lib/MooseX/Net/API/Meta/Method.pm
@@ -170,9 +170,10 @@ sub _build_path {
             $path =~ s/(?:\$|:)$match/$value/;
         }
         if ($max_iter > $i) {
-            $path =~ s/(?:\$|:)(\w+)//;
+            $path =~ s/(?:\/)?(?:\$|:)(\w+)$//;
         }
     }
+    $path =~ s/(?:\/)?(?:\$|:)(\w+)$//;
     return $path;
 }