module Sprockets::URIUtils

def parse_uri_query_params(query)

Return Hash of params.

query - String query string

Internal: Parse query string into hash of params
def parse_uri_query_params(query)
  query.to_s.split('&').reduce({}) do |h, p|
    k, v = p.split('=', 2)
    v = URI::Generic::DEFAULT_PARSER.unescape(v) if v
    h[k.to_sym] = v || true
    h
  end
end