added youtube short links for embedding
This commit is contained in:
parent
8ad5a2ffc8
commit
6fa9741b86
1 changed files with 1 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue