プロジェクト

全般

プロフィール

バグ #657 » 0001-twitpic.patch

Satoshi Okuno, 2014-05-03 23:41

差分を表示:

core/plugin/openimg/openimg.rb
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-1/1)