From dc25b408e64592cc93160f3e324efeb35f5f9d67 Mon Sep 17 00:00:00 2001 From: raizasafeel <89463672+raizasafeel@users.noreply.github.com> Date: Tue, 3 Feb 2026 14:51:17 +0530 Subject: [PATCH] fix(vimeo): video player is rendered for private videos and unsanitized vimeo links --- frontend/src/utils/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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/,