From babbec2e7ded902995a9abc365832974b4acae73 Mon Sep 17 00:00:00 2001 From: JacobTaylor-RCC <39351909+JacobTaylor-RCC@users.noreply.github.com> Date: Wed, 2 Jun 2021 11:10:31 -0700 Subject: [PATCH] update vimeo regex to work with private videos Fix taken from https://github.com/fancyapps/fancybox/issues/2498 and credit also to https://github.com/fancyapps/fancybox/issues/2532 for reporting this issue. Credit to @nate-thomas for the fix https://github.com/fancyapps/fancybox/issues/2498#issuecomment-686260537 --- src/js/media.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/media.js b/src/js/media.js index d01692a1..9c9eded1 100644 --- a/src/js/media.js +++ b/src/js/media.js @@ -28,7 +28,7 @@ }, vimeo: { - matcher: /^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/, + matcher: /^.+vimeo.com\/(\/)?([\d]+)(.*)?/, params: { autoplay: 1, hd: 1, @@ -287,4 +287,4 @@ } } }); -})(jQuery); \ No newline at end of file +})(jQuery);