diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/commands/dev/eval.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/dev/eval.ts b/src/commands/dev/eval.ts index 449b8a2..38e142e 100644 --- a/src/commands/dev/eval.ts +++ b/src/commands/dev/eval.ts @@ -142,7 +142,7 @@ export default class EvalCommand extends BushCommand { const code: { js?: string | null; ts?: string | null; lang?: 'js' | 'ts' } = {}; args.code = args.code.replace(/[“”]/g, '"'); args.code = args.code.replace(/```*(?:js|ts)?/g, ''); - if (args.typescript ) { + if (args.typescript) { code.ts = args.code; code.js = transpile(args.code); code.lang = 'ts'; |