Skip to content

Commit 8c3b7d4

Browse files
committed
Fixes youtube regex
Signed-off-by: Akash Manohar J <[email protected]>
1 parent b101d1e commit 8c3b7d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/assets/javascripts/backbone/plugins/youtube_embed.js.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
class Kandan.Plugins.YouTubeEmbed
22

33
@options:
4-
regex: /^http(s)?:\/\/www.youtube.com\/watch/i
4+
regex: /^http(s)?.+www.youtube.com.+watch/i
55
idRegex: /\Wv=([\w|\-]*)/
66

77
template: _.template '''

0 commit comments

Comments
 (0)