From d940ae68084017044ca58761f359e337bec1874a Mon Sep 17 00:00:00 2001 From: Dylan Jeffers Date: Wed, 3 May 2023 13:20:43 -0700 Subject: [PATCH] Fix internal/external audius urls (#3320) --- packages/common/src/utils/urlUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/common/src/utils/urlUtils.ts b/packages/common/src/utils/urlUtils.ts index b3e8d961a9c..97fdd6891c8 100644 --- a/packages/common/src/utils/urlUtils.ts +++ b/packages/common/src/utils/urlUtils.ts @@ -1,6 +1,6 @@ const audiusUrlRegex = // eslint-disable-next-line no-useless-escape - /^(?:https?:\/\/)?(?:[^@\/\n]+@)?(?:www\.)?([^:\/?\n]+\.)?(audius.co)(\/.+)?/gim + /^(?:https?:\/\/)?(?:[^@\/\n]+@)?(?:www\.)?(staging\.)?(audius.co)(\/.+)?/gim export const isAudiusUrl = (url: string) => new RegExp(audiusUrlRegex).test(url) export const getPathFromAudiusUrl = (url: string) =>