2
0

🚸 Enable OneDrive video url parsing

This commit is contained in:
Baptiste Arnaud
2024-01-31 08:29:44 +01:00
parent ff9c4726cc
commit 8ad4a0996c
2 changed files with 11 additions and 0 deletions

View File

@ -42,6 +42,8 @@ export const tiktokRegex = /tiktok\.com\/@[\w-]+\/video\/(\d+)/
const gumletBaseUrl = 'https://play.gumlet.io/embed'
export const gumletRegex = /gumlet\.com\/watch\/(\w+)/
export const oneDriveRegex = /https:\/\/onedrive.live.com\/embed\?[^"]+/
export const embedBaseUrls = {
[VideoBubbleContentType.VIMEO]: vimeoBaseUrl,
[VideoBubbleContentType.YOUTUBE]: youtubeBaseUrl,