lib/onebox/engine/standard_embed.rb in onebox-1.8.22 vs lib/onebox/engine/standard_embed.rb in onebox-1.8.23

- old
+ new

@@ -117,10 +117,10 @@ twitter = {} html_doc.css('meta').each do |m| if (m["property"] && m["property"][/^twitter:(.+)$/i]) || (m["name"] && m["name"][/^twitter:(.+)$/i]) value = (m["content"] || m["value"]).to_s - twitter[$1.tr('-:','_').to_sym] ||= value unless Onebox::Helpers::blank?(value) + twitter[$1.tr('-:' , '_').to_sym] ||= value unless Onebox::Helpers::blank?(value) end end twitter end