lib/onebox/engine/vimeo_onebox.rb in onebox-1.8.32 vs lib/onebox/engine/vimeo_onebox.rb in onebox-1.8.33
- old
+ new
@@ -2,10 +2,10 @@
module Engine
class VimeoOnebox
include Engine
include StandardEmbed
- matches_regexp(/^https?:\/\/(www\.)?vimeo\.com\/\d+$/)
+ matches_regexp(/^https?:\/\/(www\.)?vimeo\.com\/\d+(\/[^\/]+)?$/)
always_https
def placeholder_html
oembed = get_oembed
escaped_src = ::Onebox::Helpers.normalize_url_for_output(oembed[:thumbnail_url])