lib/onebox/engine/amazon_onebox.rb in onebox-1.0.1 vs lib/onebox/engine/amazon_onebox.rb in onebox-1.1.0

- old
+ new

@@ -3,11 +3,13 @@ class AmazonOnebox include Engine include HTML matches do - #/^https?:\/\/(?:www\.)?amazon.(com|ca)\/.*$/ - find "amazon.com" + http + maybe("www.") + domain("amazon") + has(".").either("com", "ca").maybe("/") end private def data