lib/chef/knife/s3_source.rb in knife-ec2-1.0.7 vs lib/chef/knife/s3_source.rb in knife-ec2-1.0.8

- old
+ new

@@ -50,12 +50,12 @@ # @return [URI] def path uri = URI(@url) if uri.scheme == "s3" - URI(@url).path.sub(/^\//, "") + URI(@url).path.sub(%r{^/}, "") else - URI(@url).path.split(bucket).last.sub(/^\//, "") + URI(@url).path.split(bucket).last.sub(%r{^/}, "") end end def connection_string conn = {}