From 782838b58dd3ae131cc646bc1062dc0ddf1ddc34 Mon Sep 17 00:00:00 2001 From: Gaagul Gigi <70290286+gaagul@users.noreply.github.com> Date: Mon, 25 Sep 2023 10:52:12 +0530 Subject: [PATCH] Updated REGEX for loom links (#895) --- src/common/constants.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/constants.js b/src/common/constants.js index 2785a940..7eeefa9e 100644 --- a/src/common/constants.js +++ b/src/common/constants.js @@ -47,7 +47,7 @@ export const VIMEO_URL_REGEXP = /((?:http|https):\/\/)?(www\.|player\.)?vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/([^/]*)\/videos\/|(?:manage\/)?videos?\/|)(\d+)(?:(?:\/|\?h=)(\w+))?(?:|\/\?)/; export const LOOM_URL_REGEXP = - /((?:http|https):\/\/)?(www\.)?loom\.com\/(share|embed)\/((?:\w|\d)*)\/?(?:\?(?:t=)?(\d+)?)?/; + /((?:http|https):\/\/)?(www\.)?loom\.com\/(share|embed)\/([a-f0-9]{32})(?:\?sid=([a-f0-9-]{36}))?(?:\?t=(\d+))?/; export const COMBINED_REGEX = new RegExp( pluck("source", [YOUTUBE_URL_REGEXP, VIMEO_URL_REGEXP, LOOM_URL_REGEXP]).join(