This commit is contained in:
Dragon Fire
2020-01-26 21:08:15 -05:00
parent 4e88a0d934
commit 6d342f00bc
+2 -2
View File
@@ -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()
}
]
});