Sha256: 6f33d0daa7c272da60414ab9759d2c8ae51a7aef8649184bee5507070f101dad
Contents?: true
Size: 178 Bytes
Versions: 7
Compression:
Stored size: 178 Bytes
Contents
module UrlReader::UrlFixer extend ActiveSupport::Concern def fixed_url(url) url.gsub(/[^[:ascii:]]| /) { |c| URI.encode(c) }.gsub('[', '%5B').gsub(']', '%5D') end end
Version data entries
7 entries across 7 versions & 1 rubygems