Skip to content

Commit

Permalink
update vimeo regex to work with private videos
Browse files Browse the repository at this point in the history
Fix taken from fancyapps#2498 and credit also to fancyapps#2532 for reporting this issue. 

Credit to @nate-thomas for the fix fancyapps#2498 (comment)
  • Loading branch information
JacobTaylor-RCC authored Jun 2, 2021
1 parent c4fd903 commit babbec2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/media.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},

vimeo: {
matcher: /^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,
matcher: /^.+vimeo.com\/(\/)?([\d]+)(.*)?/,
params: {
autoplay: 1,
hd: 1,
Expand Down Expand Up @@ -287,4 +287,4 @@
}
}
});
})(jQuery);
})(jQuery);

0 comments on commit babbec2

Please sign in to comment.