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