diff --git a/src/commands/eval.ts b/src/commands/eval.ts index 72066f1..4cd0d2e 100644 --- a/src/commands/eval.ts +++ b/src/commands/eval.ts @@ -32,9 +32,9 @@ export default class Eval extends Command { evaled = error.stack; } - evaled = evaled.replace(RegExp(this.client.config.prefix, 'gi'), 'juul'); - evaled = evaled.replace(RegExp(this.client.config.emailPass, 'gi'), 'juul'); - evaled = evaled.replace(RegExp(this.client.config.cloudflare, 'gi'), 'juul'); + evaled = evaled.replace(new RegExp(this.client.config.prefix, 'gi'), 'juul'); + evaled = evaled.replace(new RegExp(this.client.config.emailPass, 'gi'), 'juul'); + evaled = evaled.replace(new RegExp(this.client.config.cloudflare, 'gi'), 'juul'); const display = this.client.util.splitString(evaled, 1975);