lib/onebox/engine/twitter_status_onebox.rb in onebox-1.3.9 vs lib/onebox/engine/twitter_status_onebox.rb in onebox-1.4.0

- old
+ new

@@ -3,15 +3,15 @@ class TwitterStatusOnebox include Engine include LayoutSupport include HTML - matches_regexp Regexp.new("^http(?:s)?://(?:www\\.)?(?:(?:\\w)+\\.)?(twitter)\\.com(?:/)?(?:.)*/status/") + matches_regexp Regexp.new("^http(?:s)?://(?:www\\.)?(?:(?:\\w)+\\.)?(twitter)\\.com(?:/)?(?:.)*/status(es)?/") private def match - @match ||= @url.match(%r{twitter\.com/.+?/status/(?<id>\d+)}) + @match ||= @url.match(%r{twitter\.com/.+?/status(es)?/(?<id>\d+)}) end def client Onebox.options.twitter_client end