Skip to content

Commit

Permalink
Fix vimeo embed url in gallery
Browse files Browse the repository at this point in the history
also match player.vimeo.com/video/<video_id>
  • Loading branch information
kudlatyamroth authored and sachinchoolur committed Oct 28, 2020
1 parent 360e6e8 commit 3172904
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 @@ -470,7 +470,7 @@ Plugin.prototype.isVideo = function(src, index) {
}

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 vimeo = src.match(/\/\/(?:www\.)?(?:player\.)?vimeo.com\/(?:video\/)?([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 3172904

Please sign in to comment.