Improve regexes #32
@ -61,7 +61,7 @@ export const InvoiceRegex = /(lnbc\w+)/i;
|
|||||||
/**
|
/**
|
||||||
* YouTube URL regex
|
* 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
|
* Hashtag regex
|
||||||
|
Loading…
Reference in New Issue
Block a user