This commit is contained in:
2023-03-09 09:57:14 +00:00
parent 1923273f6f
commit ca1bb86036
5 changed files with 134 additions and 2 deletions

View File

@ -179,3 +179,9 @@ export const MagnetRegex = /(magnet:[\S]+)/i;
*/
export const WavlakeRegex =
/https?:\/\/(?:player\.|www\.)?wavlake\.com\/(?!top|new|artists|account|activity|login|preferences|feed)(?:(?:track|album)\/[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}|[a-z-]+)/i;
/player\.wavlake\.com\/(?!feed\/)(track\/[.a-zA-Z0-9-]+|album\/[.a-zA-Z0-9-]+|[.a-zA-Z0-9-]+)/i;
/*
* Regex to match any base64 string
*/
export const Base64Regex = /([a-zA-Z0-9+/]+={,2})/;