From c0dfb5f853aa02a9262b258c17251f29a1d9514c Mon Sep 17 00:00:00 2001 From: Thomas Amland Date: Tue, 4 Aug 2020 18:48:19 +0200 Subject: [PATCH] clean links from artist bio --- src/shared/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/api.ts b/src/shared/api.ts index f74e9a6..cc29058 100644 --- a/src/shared/api.ts +++ b/src/shared/api.ts @@ -102,7 +102,7 @@ export class API { return { id: info1.id, name: info1.name, - description: info2.biography, + description: (info2.biography || "").replace(/]*>.*?<\/a>/gm, ''), image: info2.largeImageUrl || info2.mediumImageUrl || info2.smallImageUrl, lastFmUrl: info2.lastFmUrl, musicBrainzUrl: info2.musicBrainzId