Skip to content

Commit

Permalink
Catch more of og-video urls (#565)
Browse files Browse the repository at this point in the history
  • Loading branch information
garmoncheg authored Nov 22, 2024
1 parent d150a34 commit 9a7d385
Showing 1 changed file with 1 addition and 1 deletion.
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 9a7d385

Please sign in to comment.