render embed for youtube live links

This commit is contained in:
Sam Samskies 2023-03-07 18:51:03 -06:00
parent 667a58ac1d
commit 002325729e
No known key found for this signature in database
GPG Key ID: E3F697EE1B6EB156

View File

@ -112,7 +112,7 @@ export const InvoiceRegex = /(lnbc\w+)/i;
* YouTube URL regex
*/
export const YoutubeUrlRegex =
/(?:https?:\/\/)?(?:www|m\.)?(?:youtu\.be\/|youtube\.com\/(?:shorts\/|embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})/;
/(?:https?:\/\/)?(?:www|m\.)?(?:youtu\.be\/|youtube\.com\/(?:live\/|shorts\/|embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})/;
/**
* Tweet Regex