Permalink
Browse files

Fixed bad regex

  • Loading branch information...
1 parent 533a196 commit d2bf308a9b5fdebfdc5b7e62d7ff6e6a05175c75 @bcardarella bcardarella committed Jul 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/presentation.rb
@@ -133,7 +133,7 @@ def embed_vimeo
# Youtube methods
def youtube_match(url)
- url.match(/http:\/\/www\.youtube\.com\/watch\/?\?v=([^&]+)&?t?=?([^&]+)/)[1..2]
+ url.match(/http:\/\/www\.youtube\.com\/watch\/?\?v=([^&]+)&?t?=?([^&]+)?/)[1..2]
end
def youtube_url

0 comments on commit d2bf308

Please sign in to comment.