From 7267e706b5bace06b1d4373ca14e74cb5a456d36 Mon Sep 17 00:00:00 2001 From: ashley Date: Sun, 28 Jul 2024 11:33:51 +0000 Subject: [PATCH] add facebook and threads regex --- src/libpoketube/init/pages-video.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libpoketube/init/pages-video.js b/src/libpoketube/init/pages-video.js index bcf1156f..222f9811 100644 --- a/src/libpoketube/init/pages-video.js +++ b/src/libpoketube/init/pages-video.js @@ -168,7 +168,13 @@ const X_REGEX = /https:\/\/twitter.com\/(?[\w\d_-]+)/; const CORD_REGEX = /https:\/\/discord.gg\/(?[\w\d_-]+)/; const TWITCH_REGEX = /https:\/\/twitch.tv\/(?[\w\d_-]+)/; const REDDIT_REGEX = /https:\/\/reddit\.com\/r\/(?[\w\d_-]+)/; + +/* meta software */ const INSTAGRAM_REGEX = /https:\/\/www.instagram.com\/(?[\w\d_-]+)/; +const THREADS_BY_INSTAGRAM_REGEX = /https:\/\/www.threads.net\/(?[\w\d_-]+)/; +const FACEBOOK_REGEX = /https:\/\/www.facebook.com\/(?[\w\d_-]+)/; + +/* music */ const LNKTO_REGEX = /https:\/\/(?\w+).lnk.to\/(?\S*)/; module.exports = function (app, config, renderTemplate) {