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

- old
+ new

@@ -3,11 +3,13 @@ class StackExchangeOnebox include Engine include HTML matches do - # /^http:\/\/(?:(?:(?<subsubdomain>\w*)\.)?(?<subdomain>\w*)\.)?(?<domain>#{DOMAINS.join('|')})\.com\/(?:questions|q)\/(?<question>\d*)/ - find "stackexchange.com" + http + domain("stackoverflow") + tld("com") + with("/questions/") end private def data