mirror of
https://github.com/hcengineering/platform.git
synced 2026-10-01 22:15:04 +02:00
fix: handle youtu.be links (#10458)
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
@@ -135,9 +135,9 @@ export const getEmbedUrlFromYoutubeUrl = (url: string, options: YoutubeEmbedUrlO
|
||||
const id = url.split('/').pop()
|
||||
|
||||
if (id !== undefined) {
|
||||
return
|
||||
return `${getYoutubeEmbedUrl(nocookie)}${id}`
|
||||
}
|
||||
return `${getYoutubeEmbedUrl(nocookie)}${id}`
|
||||
return
|
||||
}
|
||||
|
||||
const videoIdRegex = /(?:(v|list)=|shorts\/)([-\w]+)/gm
|
||||
|
||||
Reference in New Issue
Block a user