lib/onebox/engine/ted_onebox.rb in onebox-1.0.1 vs lib/onebox/engine/ted_onebox.rb in onebox-1.1.0
- old
+ new
@@ -3,11 +3,14 @@
class TedOnebox
include Engine
include OpenGraph
matches do
- # /^https?\:\/\/(www\.)?ted\.com\/talks\/.*$/
- find "ted.com"
+ http
+ maybe("www.")
+ domain("ted")
+ tld("com")
+ with("/talks/")
end
private
def data