Fix Wavlake zine links without trailing slash, ignore top and new links (#537)

This commit is contained in:
Michael Rhee 2023-04-24 10:27:03 -05:00 committed by GitHub
parent d47bbd5b26
commit 9258253f65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -178,4 +178,4 @@ export const MagnetRegex = /(magnet:[\S]+)/i;
* Wavlake embed regex
*/
export const WavlakeRegex =
/(?!zine\.wavlake\.com)(?:player\.|www\.)?wavlake\.com\/(?:(?:track|album)\/[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}|[a-z-]+)$/i;
/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;