forked from Kieran/snort
fix: support m.youtube.com subdomain links
This commit is contained in:
parent
6f3107659e
commit
781b77f735
@ -61,4 +61,4 @@ export const InvoiceRegex = /(lnbc\w+)/i;
|
|||||||
/**
|
/**
|
||||||
* YouTube URL regex
|
* YouTube URL regex
|
||||||
*/
|
*/
|
||||||
export const YoutubeUrlRegex = /^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/
|
export const YoutubeUrlRegex = /^(?:https?:\/\/)?(?:www|m\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/
|
||||||
|
Loading…
Reference in New Issue
Block a user