module Sprockets::URIUtils

def parse_uri_query_params(query)

Experimental RBS support (using type sampling data from the type_fusion project).

def parse_uri_query_params: (String query) -> Hash

This signature was generated using 22 samples from 3 applications.

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('&'.freeze).reduce({}) do |h, p|
    k, v = p.split('='.freeze, 2)
    v = URI::Generic::DEFAULT_PARSER.unescape(v) if v
    h[k.to_sym] = v || true
    h
  end
end