added youtube short links for embedding

This commit is contained in:
arabcoders 2025-04-01 00:02:07 +03:00
parent 8ad5a2ffc8
commit 6fa9741b86

View file

@ -2,7 +2,7 @@ const sources = [
{
name: 'youtube',
url: 'https://www.youtube-nocookie.com/embed/',
regex: /(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|\S*?[?&]v=)|youtu\.be\/)([a-zA-Z0-9_-]{11})/,
regex: /(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:shorts\/|[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|\S*?[?&]v=)|youtu\.be\/)([a-zA-Z0-9_-]{11})/,
},
{
name: "instagram",