lib/onebox/engine/yfrog_onebox.rb in onebox-1.0.1 vs lib/onebox/engine/yfrog_onebox.rb in onebox-1.1.0
- old
+ new
@@ -3,11 +3,14 @@
class YfrogOnebox
include Engine
include OpenGraph
matches do
- # /^https?:\/\/(?:www\.)?yfrog\.(com|ru|com\.tr|it|fr|co\.il|co\.uk|com\.pl|pl|eu|us)\/[a-zA-Z0-9]+/
- find "yfrog.com"
+ http
+ maybe("www.")
+ maybe("twitter.")
+ domain("yfrog")
+ either(".com", ".ru", ".tr", ".it", ".fr", ".co", ".uk", ".pl", ".eu", ".us")
end
private
def data