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