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