From 714c9ee7ce7cb00876f3933d68baf99e918b0285 Mon Sep 17 00:00:00 2001 From: iwtn Date: Sat, 18 May 2024 23:26:55 +0900 Subject: [PATCH 1/3] =?UTF-8?q?URI.decode=5Fwww=5Fform=E3=81=AE=E3=82=B5?= =?UTF-8?q?=E3=83=B3=E3=83=97=E3=83=AB=E3=82=B3=E3=83=BC=E3=83=89=E3=81=A7?= =?UTF-8?q?rassoc=E3=81=8C=E3=82=A8=E3=83=A9=E3=83=BC=E3=82=92=E5=87=BA?= =?UTF-8?q?=E3=81=97=E3=81=A6=E3=81=84=E3=81=9F=E3=81=AE=E3=81=A7=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- refm/api/src/uri/URI | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/refm/api/src/uri/URI b/refm/api/src/uri/URI index 1ef3039471..4918156463 100644 --- a/refm/api/src/uri/URI +++ b/refm/api/src/uri/URI @@ -210,11 +210,11 @@ enc で指定したエンコーディングの文字列が URL エンコード require 'uri' ary = URI.decode_www_form("a=1&a=2&b=3") - p ary #=> [['a', '1'], ['a', '2'], ['b', '3']] - p ary.assoc('a').last #=> '1' - p ary.assoc('b').last #=> '3' - p ary.rassoc('a').last #=> '2' - p Hash[ary] # => {"a"=>"2", "b"=>"3"} + p ary #=> [['a', '1'], ['a', '2'], ['b', '3']] + p ary.assoc('a').last #=> '1' + p ary.assoc('b').last #=> '3' + p ary.rassoc('2').first #=> 'a' + p Hash[ary] # => {"a"=>"2", "b"=>"3"} @param str デコード対象の文字列 @param enc エンコーディング From 985c81cb8c382fa5f7625bfa055c4a29020292b3 Mon Sep 17 00:00:00 2001 From: iwtn Date: Sun, 20 Oct 2024 22:59:31 +0900 Subject: [PATCH 2/3] =?UTF-8?q?=E9=87=8D=E8=A4=87=E3=81=97=E3=81=9F?= =?UTF-8?q?=E3=82=AD=E3=83=BC=E3=81=AB=E5=AF=BE=E5=BF=9C=E3=81=99=E3=82=8B?= =?UTF-8?q?=E6=9C=80=E5=BE=8C=E3=81=AE=E5=80=A4=E3=82=92=E5=8F=96=E3=82=8A?= =?UTF-8?q?=E5=87=BA=E3=81=99=E3=82=88=E3=81=86=E3=81=AB=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- refm/api/src/uri/URI | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/refm/api/src/uri/URI b/refm/api/src/uri/URI index 4918156463..5f65203533 100644 --- a/refm/api/src/uri/URI +++ b/refm/api/src/uri/URI @@ -210,11 +210,11 @@ enc で指定したエンコーディングの文字列が URL エンコード require 'uri' ary = URI.decode_www_form("a=1&a=2&b=3") - p ary #=> [['a', '1'], ['a', '2'], ['b', '3']] - p ary.assoc('a').last #=> '1' - p ary.assoc('b').last #=> '3' - p ary.rassoc('2').first #=> 'a' - p Hash[ary] # => {"a"=>"2", "b"=>"3"} + p ary #=> [['a', '1'], ['a', '2'], ['b', '3']] + p ary.assoc('a').last #=> '1' + p ary.assoc('b').last #=> '3' + p Hash[ary]['a'] #=> '2' + p Hash[ary] #=> {"a"=>"2", "b"=>"3"} @param str デコード対象の文字列 @param enc エンコーディング From 5e68c4ecb7418d9322de1ff885e12a02739ade3e Mon Sep 17 00:00:00 2001 From: iwtn Date: Fri, 25 Oct 2024 22:29:37 +0900 Subject: [PATCH 3/3] =?UTF-8?q?=E9=81=A9=E5=88=87=E3=81=AA=E4=BE=8B?= =?UTF-8?q?=E3=81=8C=E8=A6=8B=E3=81=A4=E3=81=8B=E3=82=89=E3=81=AA=E3=81=8B?= =?UTF-8?q?=E3=81=A3=E3=81=9F=E3=81=AE=E3=81=A7=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- refm/api/src/uri/URI | 1 - 1 file changed, 1 deletion(-) diff --git a/refm/api/src/uri/URI b/refm/api/src/uri/URI index 5f65203533..8c187c1e4c 100644 --- a/refm/api/src/uri/URI +++ b/refm/api/src/uri/URI @@ -213,7 +213,6 @@ enc で指定したエンコーディングの文字列が URL エンコード p ary #=> [['a', '1'], ['a', '2'], ['b', '3']] p ary.assoc('a').last #=> '1' p ary.assoc('b').last #=> '3' - p Hash[ary]['a'] #=> '2' p Hash[ary] #=> {"a"=>"2", "b"=>"3"} @param str デコード対象の文字列