From 11aae4922a010bb535bde94ebb696c680db85ee3 Mon Sep 17 00:00:00 2001 From: ibra-hassan Date: Mon, 29 Jul 2024 20:20:46 +0300 Subject: [PATCH] auto --- packages/quill/src/themes/base.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/quill/src/themes/base.ts b/packages/quill/src/themes/base.ts index 8d7edf63b8..9b0a9da299 100644 --- a/packages/quill/src/themes/base.ts +++ b/packages/quill/src/themes/base.ts @@ -331,6 +331,9 @@ function extractVideoUrl(url: string) { url.match( /^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/, ) || + url.match( + /^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/shorts\/([a-zA-Z0-9_-]+)/, + ) || url.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/); if (match) { return `${match[1] || 'https'}://www.youtube.com/embed/${