From eb1edef868528a019295fba79df2f44d0faa270f Mon Sep 17 00:00:00 2001 From: Aztup <55710232+Aztup@users.noreply.github.com> Date: Sun, 28 Dec 2025 21:50:49 +0100 Subject: [PATCH] fix(openInApp): Tidal regex (again) (#3753) * fix tidal regex to support listen and strip the /u * remove unnecessary $ --------- Co-authored-by: lewisakura --- src/plugins/openInApp/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/openInApp/index.ts b/src/plugins/openInApp/index.ts index 5dcca372f..de788b2df 100644 --- a/src/plugins/openInApp/index.ts +++ b/src/plugins/openInApp/index.ts @@ -52,7 +52,7 @@ const UrlReplacementRules: Record = { description: "Open Epic Games links in the Epic Games Launcher", }, tidal: { - match: /^https:\/\/tidal\.com\/(?:browse\/)?(track|album|artist|playlist|user|video|mix)\/(.+)(?:\?.+?)?$/, + match: /^https:\/\/(?:listen\.)?tidal\.com\/(?:browse\/)?(track|album|artist|playlist|user|video|mix)\/([a-f0-9-]+).*/, replace: (_, type, id) => `tidal://${type}/${id}`, description: "Open Tidal links in the Tidal app", },