diff options
author | franck cuny <franck@lumberjaph.net> | 2010-06-24 16:32:09 +0200 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2010-06-24 16:32:09 +0200 |
commit | 875b87667bc367908c46fe2c2e61b5e2f4089a37 (patch) | |
tree | 849a62e6069851cb478b7ff710a6373d7a97858f | |
parent | add strict and alter what params_in_url does (diff) | |
download | moosex-net-api-875b87667bc367908c46fe2c2e61b5e2f4089a37.tar.gz |
fix regex
-rw-r--r-- | lib/MooseX/Net/API/Meta/Method.pm | 4 |
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; } |