From 91a5b204b47506896b3706df7db4787cbc1e2611 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Fri, 25 Jun 2010 15:34:27 +0200 Subject: another fix for path --- lib/MooseX/Net/API/Meta/Method.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/MooseX/Net/API') diff --git a/lib/MooseX/Net/API/Meta/Method.pm b/lib/MooseX/Net/API/Meta/Method.pm index d2c9ab1..8879e04 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; } -- cgit 1.4.1