Merge pull request #804 from tschuy/patch-1
Add underscore to youtube regex
This commit is contained in:
commit
99d0081ee9
1 changed files with 1 additions and 1 deletions
|
@ -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){
|
||||
|
|
Loading…
Reference in a new issue