バグ #657 » 0001-twitpic.patch
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
|
||