From f17b92c2fd9835d9dafb1fcfad5acbe8c4499d9f Mon Sep 17 00:00:00 2001 From: Cookie <52550063+Covkie@users.noreply.github.com> Date: Sat, 14 Sep 2024 11:03:58 -0400 Subject: [PATCH] OpenInApp: support Spotify prerelease links (#2870) --- src/plugins/openInApp/index.ts | 2 +- src/utils/constants.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/openInApp/index.ts b/src/plugins/openInApp/index.ts index 2e332465e..7b62831f9 100644 --- a/src/plugins/openInApp/index.ts +++ b/src/plugins/openInApp/index.ts @@ -33,7 +33,7 @@ interface URLReplacementRule { // Do not forget to add protocols to the ALLOWED_PROTOCOLS constant const UrlReplacementRules: Record = { spotify: { - match: /^https:\/\/open\.spotify\.com\/(?:intl-[a-z]{2}\/)?(track|album|artist|playlist|user|episode)\/(.+)(?:\?.+?)?$/, + match: /^https:\/\/open\.spotify\.com\/(?:intl-[a-z]{2}\/)?(track|album|artist|playlist|user|episode|prerelease)\/(.+)(?:\?.+?)?$/, replace: (_, type, id) => `spotify://${type}/${id}`, description: "Open Spotify links in the Spotify app", shortlinkMatch: /^https:\/\/spotify\.link\/.+$/, diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 0572fa102..6653e6307 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -268,7 +268,7 @@ export const Devs = /* #__PURE__*/ Object.freeze({ id: 841509053422632990n }, F53: { - name: "F53", + name: "Cassie (Code)", id: 280411966126948353n }, AutumnVN: {