render embed for youtube live links (#407)
This commit is contained in:
parent
093ea8205b
commit
bc72bf6d04
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user