class Sinatra::Base
def encoded(char)
def encoded(char) enc = URI.encode(char) enc = "(?:#{Regexp.escape enc}|#{URI.encode char, /./})" if enc == char enc = "(?:#{enc}|#{encoded('+')})" if char == " " enc end
def encoded(char) enc = URI.encode(char) enc = "(?:#{Regexp.escape enc}|#{URI.encode char, /./})" if enc == char enc = "(?:#{enc}|#{encoded('+')})" if char == " " enc end