diff options
-rw-r--r-- | src/commands/dev/eval.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/commands/dev/eval.ts b/src/commands/dev/eval.ts index 43a7170..436268e 100644 --- a/src/commands/dev/eval.ts +++ b/src/commands/dev/eval.ts @@ -220,7 +220,13 @@ export default class EvalCommand extends BushCommand { `[${newCredential} Omitted]` ); output = output.replace( - new RegExp([...credential.toString()].reverse().join('').replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), 'g'), + new RegExp( + [...credential.toString()] + .reverse() + .join('') + .replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), + 'g' + ), `[${newCredential} Omitted]` ); } |