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.merge(k.to_sym => v || true)
  end
end