fix: handle youtu.be links (#10458)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov
2026-01-28 23:47:32 +07:00
committed by GitHub
parent 0adaefe5f3
commit 0a9c3806bc
@@ -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