mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 06:10:49 +02:00
Fix
This commit is contained in:
@@ -67,7 +67,7 @@ module.exports = class GoogleFeudCommand extends Command {
|
||||
const suggestions = JSON.parse(text)[1];
|
||||
if (!suggestions.length) return null;
|
||||
return suggestions
|
||||
.filter(suggestion => suggestion !== question.toLowerCase())
|
||||
.filter(suggestion => suggestion.toLowerCase() !== question.toLowerCase())
|
||||
.map(suggestion => suggestion.toLowerCase().replace(question.toLowerCase(), '').trim());
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user