diff --git a/frontend/src/utils/index.js b/frontend/src/utils/index.js index e0a69d55..acf6c068 100644 --- a/frontend/src/utils/index.js +++ b/frontend/src/utils/index.js @@ -169,10 +169,10 @@ export function getEditorTools() { id: ([id]) => id, }, vimeo: { - regex: /(?:http[s]?:\/\/)?(?:www\.)?vimeo\.com\/(\d+)/, + regex: /(?:http[s]?:\/\/)?(?:www\.)?vimeo\.com\/(\d+)(?:\/([a-zA-Z0-9]+))?(?:\?[^\s]*)?/, embedUrl: '<%= remote_id %>', html: `
`, - id: ([id]) => id, + id: ([id, hash]) => (hash ? `${id}?h=${hash}` : id), }, cloudflareStream: { regex: /https:\/\/customer-[a-z0-9]+\.cloudflarestream\.com\/([a-f0-9]{32})\/watch/,