lib/onebox/engine/nfb_onebox.rb in onebox-1.0.1 vs lib/onebox/engine/nfb_onebox.rb in onebox-1.1.0
- old
+ new
@@ -3,11 +3,14 @@
class NFBOnebox
include Engine
include OpenGraph
matches do
- # /^https?:\/\/(?:www\.)?nfb\.ca\/film\/[-\w]+\/?/
- find "nfb.ca"
+ http
+ maybe("www.")
+ domain("nfb")
+ tld("ca")
+ with("/film")
end
private
def data