Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
nleush committed Nov 26, 2024
2 parents ea67e6c + 1a18732 commit 475e56b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/domains/brightcove.com/players.brightcove.net.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default {

re: [
/^https?:\/\/players\.brightcove\.net\/\d+\/[a-zA-Z0-9]+_[a-zA-Z0-9]+\/index\.html\?videoId=\d+/i,
/^https?:\/\/players\.brightcove\.net\/\d+\/[a-zA-Z0-9-]+_[a-zA-Z0-9]+\/index\.html\?videoId=\d+/i,
// Avoid oembed error on experiences such as https://players.brightcove.net/6057277732001/experience_5fdc1e38e57a07002222f857/share.html
// Аuto-discovery on expeience pages is for a single video and isn't right either. So let oEmbed fail there for now.

Expand Down
2 changes: 1 addition & 1 deletion plugins/links/og-video.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function getVideoLinks(video, whitelistRecord) {

var players = [];

if (!whitelistRecord.isDefault || /\.(mp4|m4v|m3u8|mp3)/i.test(video.url || video) || /^video\//i.test(video.type)) {
if (!whitelistRecord.isDefault || /\.?(mp4|m4v|m3u8|mp3)/i.test(video.url || video) || /^video\//i.test(video.type)) {
players.push({
href: video.url || video,
accept: accept,
Expand Down

0 comments on commit 475e56b

Please sign in to comment.