Skip to content

Commit

Permalink
Merge pull request #766 from Gerhard-Kanzler/master
Browse files Browse the repository at this point in the history
add -noocookie.com to youtube
  • Loading branch information
sachinchoolur authored May 22, 2018
2 parents bd73a66 + efb7b46 commit 92dea6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/lightgallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@
}
}

var youtube = src.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)/i);
var youtube = src.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)/i);
var vimeo = src.match(/\/\/(?:www\.)?vimeo.com\/([0-9a-z\-_]+)/i);
var dailymotion = src.match(/\/\/(?:www\.)?dai.ly\/([0-9a-z\-_]+)/i);
var vk = src.match(/\/\/(?:www\.)?(?:vk\.com|vkontakte\.ru)\/(?:video_ext\.php\?)(.*)/i);
Expand Down

0 comments on commit 92dea6f

Please sign in to comment.