Update regex for Wavlake embeds, ignore zine subdomain (#529)

This commit is contained in:
Michael Rhee
2023-04-19 16:24:11 -05:00
committed by GitHub
parent cc1d42c517
commit be1cd923cd
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
const WavlakeEmbed = ({ link }: { link: string }) => {
const convertedUrl = link.replace(/(?:player\.)?wavlake\.com/, "embed.wavlake.com");
const convertedUrl = link.replace(/(?:player\.|www\.)?wavlake\.com/, "embed.wavlake.com");
return (
<iframe