From 4730d114265383dde52e4c4f9671e4b70de38e4c Mon Sep 17 00:00:00 2001 From: moguno Date: Sat, 3 May 2014 23:28:02 +0900 Subject: [PATCH] =?UTF-8?q?twitpic=E3=81=AE=E7=94=BB=E5=83=8F=E3=81=8C?= =?UTF-8?q?=E3=83=97=E3=83=AC=E3=83=93=E3=83=A5=E3=83=BC=E5=87=BA=E6=9D=A5?= =?UTF-8?q?=E3=81=AA=E3=81=84=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/plugin/openimg/openimg.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/plugin/openimg/openimg.rb b/core/plugin/openimg/openimg.rb index f83b709..026bb38 100644 --- a/core/plugin/openimg/openimg.rb +++ b/core/plugin/openimg/openimg.rb @@ -86,8 +86,8 @@ Plugin.create :openimg do def get_tag_by_attributes(tag) attribute = {} - tag.scan(/([^\s=]+)=(?:['"])(.*?)\2/){ |pair| - key, val = pair + tag.scan(/([^\s=]+)=(['"])(.*?)\2/){ |pair| + key, val = pair[0], pair[2] attribute[key] = val } attribute.freeze end -- 1.9.2