lib/onebox/engine/youtube_onebox.rb in onebox-1.5.62 vs lib/onebox/engine/youtube_onebox.rb in onebox-1.5.63
- old
+ new
@@ -63,10 +63,10 @@
def video_id
@video_id ||= begin
# http://youtu.be/afyK1HSFfgw
if uri.host["youtu.be"]
- id = uri.path[/\/([\w\-]+)\//, 1]
+ id = uri.path[/\/([\w\-]+)/, 1]
return id if id
end
# https://www.youtube.com/embed/vsF0K3Ou1v0
if uri.path["/embed/"]