From 1eb424a11b0ac6546535ae0974157181c66bbb92 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Sun, 18 Jul 2021 13:12:53 -0400 Subject: move around excapes --- src/commands/dev/eval.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/dev/eval.ts b/src/commands/dev/eval.ts index 38e142e..43a7170 100644 --- a/src/commands/dev/eval.ts +++ b/src/commands/dev/eval.ts @@ -220,7 +220,7 @@ export default class EvalCommand extends BushCommand { `[${newCredential} Omitted]` ); output = output.replace( - new RegExp([...credential.toString().replace(/[.*+?^${}()|[\]\\]/g, '\\$&')].reverse().join(''), 'g'), + new RegExp([...credential.toString()].reverse().join('').replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), 'g'), `[${newCredential} Omitted]` ); } -- cgit