From df6d9960c3ac8912f892c683c1004b4ef2481b88 Mon Sep 17 00:00:00 2001 From: Shigma <1700011071@pku.edu.cn> Date: Tue, 20 Oct 2020 22:34:24 +0800 Subject: [PATCH] fix(tools): fix brainfuck returning true --- packages/plugin-tools/src/brainfuck.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugin-tools/src/brainfuck.ts b/packages/plugin-tools/src/brainfuck.ts index 5e4064a973..a360937969 100644 --- a/packages/plugin-tools/src/brainfuck.ts +++ b/packages/plugin-tools/src/brainfuck.ts @@ -123,7 +123,7 @@ export function apply(ctx: Context, config: BrainfuckOptions = {}) { source = CQCode.unescape(source) const input = CQCode.unescape(options.input) try { - return new BrainFuck(source, config).exec(input), true + return CQCode.escape(new BrainFuck(source, config).exec(input)) } catch (error) { if (error.name === 'BFError') { return error.message