lib/onebox/engine/video_onebox.rb in onebox-1.6.5 vs lib/onebox/engine/video_onebox.rb in onebox-1.6.6

- old
+ new

@@ -1,17 +1,18 @@ module Onebox module Engine class VideoOnebox include Engine - matches_regexp /^(https?:)?\/\/.*\.(mov|mp4|webm|ogv)(\?.*)?$/ + matches_regexp(/^(https?:)?\/\/.*\.(mov|mp4|webm|ogv)(\?.*)?$/i) def always_https? WhitelistedGenericOnebox.host_matches(uri, WhitelistedGenericOnebox.https_hosts) end def to_html - "<video width='100%' height='100%' controls><source src='#{@url}'><a href='#{@url}'>#{@url}</a></video>" + url = ::Onebox::Helpers.normalize_url_for_output(@url) + "<video width='100%' height='100%' controls><source src='#{url}'><a href='#{url}'>#{url}</a></video>" end end end end