lib/onebox/engine/wikipedia_onebox.rb in onebox-1.0.1 vs lib/onebox/engine/wikipedia_onebox.rb in onebox-1.1.0
- old
+ new
@@ -3,11 +3,13 @@
class WikipediaOnebox
include Engine
include HTML
matches do
- # /^https?:\/\/.*wikipedia\.(com|org)\/.*$/
- find "wikipedia.com"
+ http
+ anything
+ domain("wikipedia")
+ either(".com", ".org")
end
private
def data