module Sprockets::HTTPUtils

def find_best_q_match(q_values, available, &matcher)

Returns the matched String from available Array or nil.

Adapted from Rack::Utils#q_values.

Internal: Find the best qvalue match from an Array of available options.
def find_best_q_match(q_values, available, &matcher)
  find_q_matches(q_values, available, &matcher).first
end