lib/bearcat/client_module.rb in bearcat-1.5.9 vs lib/bearcat/client_module.rb in bearcat-1.5.10

- old
+ new

@@ -12,10 +12,10 @@ @current_prefix = past_prefix end def endpoint(method, identifier, url = "", defaults: {}, &blk) if @current_prefix && !url.start_with?('/') - url = url[2..] if url.start_with?('./') + url = url[2..-1] if url.start_with?('./') url = @current_prefix + url end args = url.to_enum(:scan, ARG_REGEX).map { Regexp.last_match } arg_names = args.map{|m| m[1]}