lib/onebox/engine/dailymotion_onebox.rb in onebox-1.0.1 vs lib/onebox/engine/dailymotion_onebox.rb in onebox-1.1.0
- old
+ new
@@ -3,11 +3,13 @@
class DailymotionOnebox
include Engine
include OpenGraph
matches do
- # /^https?:\/\/(?:www\.)?dailymotion\.com\/.+$/
- find "dailymotion.com"
+ http
+ maybe("www.")
+ domain("dailymotion")
+ has(".com").maybe("/")
end
private
def data