This commit is contained in:
Daniel Odendahl Jr
2017-12-14 15:45:36 +00:00
parent b5d14b0414
commit 3b6558599a
+1 -1
View File
@@ -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());
}
};