From dd8e884f68533eb3f8b26b41cd2095cc3f082ed0 Mon Sep 17 00:00:00 2001 From: Alejandro Gomez Date: Wed, 11 Jan 2023 19:26:37 +0100 Subject: [PATCH] fix: support shorts YouTube URLs --- src/Const.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Const.js b/src/Const.js index 4dd95ae4..5a9292e4 100644 --- a/src/Const.js +++ b/src/Const.js @@ -61,7 +61,7 @@ export const InvoiceRegex = /(lnbc\w+)/i; /** * YouTube URL regex */ -export const YoutubeUrlRegex = /(?:https?:\/\/)?(?:www|m\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})/; +export const YoutubeUrlRegex = /(?:https?:\/\/)?(?:www|m\.)?(?:youtu\.be\/|youtube\.com\/(?:shorts\/|embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})/; /** * Hashtag regex