forked from Kieran/snort
fix: support shorts YouTube URLs
This commit is contained in:
parent
425a21b095
commit
dd8e884f68
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user