Module: CarrierWave::Utilities::Uri

Included in:
Downloader::Base, Storage::Fog::File, CarrierWave::Uploader::Url
Defined in:
lib/carrierwave/utilities/uri.rb

Constant Summary collapse

PATH_SAFE =

based on Ruby < 2.0’s URI.encode

URI::REGEXP::PATTERN::UNRESERVED + '\/'
PATH_UNSAFE =
Regexp.new("[^#{PATH_SAFE}]", false)
NON_ASCII =
/[^[:ascii:]]/.freeze