diff --git a/src/modules/misc/color.js b/src/modules/misc/color.js index fd69107..19ed368 100644 --- a/src/modules/misc/color.js +++ b/src/modules/misc/color.js @@ -24,7 +24,7 @@ color.callback = async function (msg, line, args, {truerandom, first}) { } if (!color.isValid) { - const search = `^([0-9a-f]{6}),${color.toHexString().substring(1)},`; + const search = `^([0-9a-f]{6}),${query},`; if (!first) { const colornamesMatches = colornamesRaw.match(new RegExp(search, "img")); if (colornamesMatches?.length > 1) {