lib/onebox/engine/audio_onebox.rb in onebox-1.8.30 vs lib/onebox/engine/audio_onebox.rb in onebox-1.8.31
- old
+ new
@@ -1,10 +1,10 @@
module Onebox
module Engine
class AudioOnebox
include Engine
- matches_regexp(/^(https?:)?\/\/.*\.(mp3|ogg|wav|m4a)(\?.*)?$/i)
+ matches_regexp(/^(https?:)?\/\/.*\.(mp3|ogg|opus|wav|m4a)(\?.*)?$/i)
def always_https?
WhitelistedGenericOnebox.host_matches(uri, WhitelistedGenericOnebox.https_hosts)
end