lib/onebox/engine/twitter_status_onebox.rb in onebox-1.8.4 vs lib/onebox/engine/twitter_status_onebox.rb in onebox-1.8.5
- old
+ new
@@ -3,10 +3,10 @@
class TwitterStatusOnebox
include Engine
include LayoutSupport
include HTML
- matches_regexp /^https?:\/\/(mobile\.|www\.)?twitter\.com\/.+?\/status(es)?\/\d+$/
+ matches_regexp /^https?:\/\/(mobile\.|www\.)?twitter\.com\/.+?\/status(es)?\/\d+(\/(video|photo)\/\d?+)?+\/?$/
always_https
private
def get_twitter_data