From 6d342f00bc0d6f671e63526445f8f1d7eb9e4b48 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 26 Jan 2020 21:08:15 -0500 Subject: [PATCH] Fix --- commands/search/lyrics.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/search/lyrics.js b/commands/search/lyrics.js index e7071032..157b46a4 100644 --- a/commands/search/lyrics.js +++ b/commands/search/lyrics.js @@ -26,13 +26,13 @@ module.exports = class LyricsCommand extends Command { key: 'artist', prompt: 'What artist would you like to get the lyrics of?', type: 'string', - parse: artist => artist.replace(/[^A-Za-z0-9]+/g, '') + parse: artist => artist.replace(/[^A-Za-z0-9]+|^(the )/gi, '').toLowerCase() }, { key: 'song', prompt: 'What song would you like to get the lyrics of?', type: 'string', - parse: song => song.replace(/[^A-Za-z0-9]+/g, '') + parse: song => song.replace(/[^A-Za-z0-9]+/g, '').toLowerCase() } ] });