Skip to content

Commit

Permalink
Fix internal/external audius urls (#3320)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanjeffers authored May 3, 2023
1 parent 96cd42f commit d940ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/common/src/utils/urlUtils.ts
Original file line number Diff line number Diff line change
@@ -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) =>
Expand Down

0 comments on commit d940ae6

Please sign in to comment.