summary refs log tree commit diff
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-06-24 16:32:09 +0200
committerfranck cuny <franck@lumberjaph.net>2010-06-24 16:32:09 +0200
commit875b87667bc367908c46fe2c2e61b5e2f4089a37 (patch)
tree849a62e6069851cb478b7ff710a6373d7a97858f
parentadd strict and alter what params_in_url does (diff)
downloadmoosex-net-api-875b87667bc367908c46fe2c2e61b5e2f4089a37.tar.gz
fix regex
-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;
 }