lib/onebox/engine/trello_onebox.rb in onebox-2.2.12 vs lib/onebox/engine/trello_onebox.rb in onebox-2.2.13
- old
+ new
@@ -14,20 +14,20 @@
link = "https://trello.com/#{match[:type]}/#{match[:key]}.html"
height = match[:type] == 'b' ? 400 : 200
<<-HTML
- <iframe src=\"#{link}\" width=\"100%\" height=\"#{height}\" frameborder=\"0\" style=\"border:0\"></iframe>
+ <iframe src="#{link}" width="100%" height="#{height}" frameborder="0" style="border:0"></iframe>
HTML
end
def placeholder_html
::Onebox::Helpers.generic_placeholder_html
end
private
def match
- return @match if @match
+ return @match if defined?(@match)
@match = @url.match(%{trello\.com/(?<type>[^/]+)/(?<key>[^/]+)/?\W*})
@match
end