From e677751010efcce330354b932bcbf9e5af0cbe64 Mon Sep 17 00:00:00 2001 From: Zankaria Date: Sat, 8 Feb 2025 22:22:23 +0100 Subject: [PATCH] config.php: add youtube shorts embedding --- inc/config.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inc/config.php b/inc/config.php index 53515a21..7d194034 100644 --- a/inc/config.php +++ b/inc/config.php @@ -1195,6 +1195,10 @@ // Custom embedding (YouTube, vimeo, etc.) // It's very important that you match the entire input (with ^ and $) or things will not work correctly. $config['embedding'] = array( + [ + '/^https?:\/\/(\w+\.)?youtube\.com\/shorts\/([a-zA-Z0-9\-_]{10,11})$/i', + '' + ], array( '/^https?:\/\/(\w+\.)?youtube\.com\/watch\?v=([a-zA-Z0-9\-_]{10,11})(&.+)?$/i', ''