From a4d9152855f4fd90fcd19e3250997d7ad0f3ef19 Mon Sep 17 00:00:00 2001 From: makc Date: Thu, 21 Mar 2024 23:40:19 +0400 Subject: support youtube shorts --- vnext/src/utils/embed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnext/src/utils/embed.js b/vnext/src/utils/embed.js index 59290227..7c1c5c3b 100644 --- a/vnext/src/utils/embed.js +++ b/vnext/src/utils/embed.js @@ -218,7 +218,7 @@ function getEmbeddableLinkTypes() { name: 'YouTube videos (and playlists)', id: 'embed_youtube_videos', className: 'youtube resizableV singleColumn', - re: /^(?:https?:)?\/\/(?:www\.|m\.|gaming\.)?(?:youtu(?:(?:\.be\/|be\.com\/(?:v|embed)\/)([-\w]+)|be\.com\/watch)((?:(?:\?|&(?:amp;)?)(?:\w+=[-.\w]*[-\w]))*)|youtube\.com\/playlist\?list=([-\w]*)(&(amp;)?[-\w?=]*)?)/i, + re: /^(?:https?:)?\/\/(?:www\.|m\.|gaming\.)?(?:youtu(?:(?:\.be\/|be\.com\/(?:v|embed|shorts)\/)([-\w]+)|be\.com\/watch)((?:(?:\?|&(?:amp;)?)(?:\w+=[-.\w]*[-\w]))*)|youtube\.com\/playlist\?list=([-\w]*)(&(amp;)?[-\w?=]*)?)/i, makeNode: function(aNode, reResult, div) { let [, v, args, plist] = reResult let iframeUrl -- cgit v1.2.3