Fix zine links without trailing slash, ignore non music paths links #538

Closed
blastshielddown wants to merge 1 commits from fix-wavlake-embeds into main

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;