mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 07:46:43 +02:00
Fix
This commit is contained in:
@@ -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()
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user