2
0

🚑 Fix youtube URL detection regex

This commit is contained in:
Baptiste Arnaud
2024-06-26 11:20:53 +02:00
parent 6af47a8cfe
commit 3b405dc7d5
2 changed files with 5 additions and 13 deletions

View File

@ -31,7 +31,7 @@ export const verticalVideoSuggestionSize = {
const youtubeBaseUrl = 'https://www.youtube.com/embed'
export const youtubeRegex =
/youtube\.com\/(watch\?v=|shorts\/)([\w-]+)|youtu\.be\/([\w-]+)(\?.+)/
/youtube\.com\/(watch\?v=|shorts\/)([\w-]+)|youtu\.be\/([\w-]+)(\?.+)*/
export const youtubeEmbedParamsMap = {
t: 'start',