|
|
@ -48,7 +48,9 @@ module Landline |
|
|
|
# @param regexp [Regexp,nil] override param matching regexp |
|
|
|
# @return [Array(String, Hash)] |
|
|
|
def self.parse_value(input, sep: ";", unquote: false, regexp: nil) |
|
|
|
parts = input.split(sep).map { |x| URI.decode_uri_component(x).strip } |
|
|
|
parts = input.split(sep).map do |x| |
|
|
|
URI.decode_www_form_component(x).strip |
|
|
|
end |
|
|
|
base = parts.shift |
|
|
|
opts = parts.map do |raw| |
|
|
|
key, value = raw.match(if regexp |
|
|
|