fix(openInApp): Tidal regex (again) (#3753)
* fix tidal regex to support listen and strip the /u * remove unnecessary $ --------- Co-authored-by: lewisakura <lewi@lewisakura.moe>
This commit is contained in:
parent
2fb549457b
commit
eb1edef868
1 changed files with 1 additions and 1 deletions
|
|
@ -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:\/\/(?: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",
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue