Skip to content

Commit

Permalink
Updated REGEX for loom links (#895)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaagul authored Sep 25, 2023
1 parent 34d4cd8 commit 782838b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 782838b

Please sign in to comment.