From d1921c49e2c73d711ebcc3d9b144c614fd228989 Mon Sep 17 00:00:00 2001 From: Evan Tschuy Date: Thu, 11 Aug 2016 01:21:35 -0700 Subject: [PATCH] Add underscore to youtube regex --- js/plugins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/plugins.js b/js/plugins.js index 952acd4..c7db496 100644 --- a/js/plugins.js +++ b/js/plugins.js @@ -206,7 +206,7 @@ plugins.factory('userPlugins', function() { * See: https://developers.google.com/youtube/player_parameters */ var youtubePlugin = new UrlPlugin('YouTube video', function(url) { - var regex = /(?:youtube.com|youtu.be)\/(?:v\/|embed\/|watch(?:\?v=|\/))?([a-zA-Z0-9-]+)/i, + var regex = /(?:youtube.com|youtu.be)\/(?:v\/|embed\/|watch(?:\?v=|\/))?([a-zA-Z0-9_-]+)/i, match = url.match(regex); if (match){