color: nvm this just needed nullcheck
This commit is contained in:
parent
1d991c93e0
commit
4045f25ae7
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue