From 130dede11221e9c63b98ccc45a0721631596693d Mon Sep 17 00:00:00 2001 From: Mitchdev Date: Tue, 28 Nov 2023 10:09:28 +1300 Subject: [PATCH] Update embed regex for new facebook embed url --- assets/chat/js/formatters/EmbedUrlFormatter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/chat/js/formatters/EmbedUrlFormatter.js b/assets/chat/js/formatters/EmbedUrlFormatter.js index 9523a755..5169be35 100644 --- a/assets/chat/js/formatters/EmbedUrlFormatter.js +++ b/assets/chat/js/formatters/EmbedUrlFormatter.js @@ -1,7 +1,7 @@ export default class EmbedUrlFormatter { constructor() { this.bigscreenregex = - /(^|\s)(#(kick|twitch|twitch-vod|twitch-clip|youtube|youtube-live|facebook|rumble|vimeo)\/([\w-]{3,64}|\d{10,20}\/videos\/\d{10,20}|\w{7}\/\?pub=\w{5})(?:\?t=(\d+)s?)?)\b/g; + /(^|\s)(#(kick|twitch|twitch-vod|twitch-clip|youtube|youtube-live|facebook|rumble|vimeo)\/([\w\d]{3,64}\/videos\/\d{10,20}|[\w-]{3,64}|\w{7}\/\?pub=\w{5})(?:\?t=(\d+)s?)?)\b/g; } format(chat, str /* , message=null */) {