class ActionDispatch::HostAuthorization::Permissions

def sanitize_hosts(hosts)

def sanitize_hosts(hosts)
  Array(hosts).map do |host|
    case host
    when Regexp then sanitize_regexp(host)
    when String then sanitize_string(host)
    else host
    end
  end
end