This commit is contained in:
Dragon Fire
2020-01-26 20:56:39 -05:00
parent 7fceec6217
commit 87ea33fadf
+1 -1
View File
@@ -53,7 +53,7 @@ module.exports = class LyricsCommand extends Command {
const { text } = await request.get(`https://www.azlyrics.com/lyrics/${artist}/${song}.html`);
const lyrics = text.match(lyricRegex)[1];
return lyrics
.replace(/<br>/g, '\n')
.replace(/<br>/g, '')
.replace(/<\/?div>/g, '')
.trim();
}