mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 05:51:35 +02:00
Fix
This commit is contained in:
@@ -26,13 +26,13 @@ module.exports = class LyricsCommand extends Command {
|
|||||||
key: 'artist',
|
key: 'artist',
|
||||||
prompt: 'What artist would you like to get the lyrics of?',
|
prompt: 'What artist would you like to get the lyrics of?',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
parse: artist => artist.replace(/[^A-Za-z0-9]+/g, '')
|
parse: artist => artist.replace(/[^A-Za-z0-9]+|^(the )/gi, '').toLowerCase()
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'song',
|
key: 'song',
|
||||||
prompt: 'What song would you like to get the lyrics of?',
|
prompt: 'What song would you like to get the lyrics of?',
|
||||||
type: 'string',
|
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