From d22ed7f236de720d685f90c4ede3a23617846d76 Mon Sep 17 00:00:00 2001 From: Conrad Date: Sun, 20 Jun 2021 10:34:07 -0400 Subject: [PATCH] .replace fix, global regexp --- src/renderCard.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderCard.tsx b/src/renderCard.tsx index 8b01bc2..e39f2ea 100644 --- a/src/renderCard.tsx +++ b/src/renderCard.tsx @@ -255,8 +255,8 @@ const renderCard = async (body: LanyardTypes.Root, params: Parameters): Promise< line-height: 0.5rem; ">

LISTENING NOW...

-

${body.data.spotify.song}

-

By ${body.data.spotify.artist.replaceAll(";", ",")}

+

${body.data.spotify.song.replace(/\&/g, "and")}

+

By ${body.data.spotify.artist.replace(/\;/g, ",")}

`