fix(openInApp): Tidal regex (#3747)

Tidal no longer requires /browse/ in its URLs

Co-authored-by: lewisakura <lewi@lewisakura.moe>
This commit is contained in:
Aztup 2025-10-30 14:14:43 +01:00 committed by GitHub
parent 556a27704a
commit 6f16f1312c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,7 +52,7 @@ const UrlReplacementRules: Record<string, URLReplacementRule> = {
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:\/\/tidal\.com\/(?:browse\/)?(track|album|artist|playlist|user|video|mix)\/(.+)(?:\?.+?)?$/,
replace: (_, type, id) => `tidal://${type}/${id}`,
description: "Open Tidal links in the Tidal app",
},