From 4969bc5b8d1afb3e83756a37aba8266c2afb4dc3 Mon Sep 17 00:00:00 2001 From: Mirabellier Date: Sun, 25 Feb 2024 07:52:31 +0800 Subject: [PATCH] change it to absolute search --- src/commands/rpg/image.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/rpg/image.js b/src/commands/rpg/image.js index 12ead24..85416a6 100644 --- a/src/commands/rpg/image.js +++ b/src/commands/rpg/image.js @@ -54,7 +54,7 @@ module.exports = { const searchResults = []; for (const key in characters) { const character = characters[key]; - if (character.name.toLowerCase().includes(name.toLowerCase())) { + if (character.name.toLowerCase() === name.toLowerCase()) { searchResults.push(key); } }