From 2358ca2cd88d648263a08eabc25789c224a939bd Mon Sep 17 00:00:00 2001 From: Tuxedo Takodachi Date: Sun, 30 Apr 2023 15:43:14 +0200 Subject: [PATCH] Port youtube live embed fix from https://github.com/ccd0/4chan-x/pull/3352 --- src/Linkification/Embedding.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Linkification/Embedding.js b/src/Linkification/Embedding.js index 04a28a511..f0258994d 100644 --- a/src/Linkification/Embedding.js +++ b/src/Linkification/Embedding.js @@ -668,7 +668,7 @@ var Embedding = { } , { key: 'YouTube', - regExp: /^\w+:\/\/(?:youtu.be\/|[\w.]*youtube[\w.]*\/.*(?:v=|\bembed\/|\bv\/))([\w\-]{11})(.*)/, + regExp: /^\w+:\/\/(?:youtu.be\/|[\w.]*youtube[\w.]*\/.*(?:v=|\bembed\/|\bv\/|live\/))([\w\-]{11})(.*)/, el(a) { let start = a.dataset.options.match(/\b(?:star)?t\=(\w+)/); if (start) { start = start[1]; }