We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 65c81f8 + e67c5a1 commit e49ec92Copy full SHA for e49ec92
1 file changed
lib/payjp/util.rb
@@ -71,7 +71,7 @@ def self.url_encode(key)
71
# (from URI::RFC2396_Parser#escape)
72
key.to_s.gsub(Regexp.new("[^#{URI::PATTERN::UNRESERVED}]")) do
73
us = $&
74
- tmp = ''
+ tmp = String.new
75
us.each_byte do |uc|
76
tmp << sprintf('%%%02X', uc)
77
end
0 commit comments