バグ #657 » 0001-twitpic.patch
core/plugin/openimg/openimg.rb | ||
---|---|---|
86 | 86 | |
87 | 87 |
def get_tag_by_attributes(tag) |
88 | 88 |
attribute = {} |
89 |
tag.scan(/([^\s=]+)=(?:['"])(.*?)\2/){ |pair|
|
|
90 |
key, val = pair |
|
89 |
tag.scan(/([^\s=]+)=(['"])(.*?)\2/){ |pair| |
|
90 |
key, val = pair[0], pair[2]
|
|
91 | 91 |
attribute[key] = val } |
92 | 92 |
attribute.freeze end |
93 | 93 |