Skip to content

Commit

Permalink
fix(tools): fix brainfuck returning true
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Oct 20, 2020
1 parent c3fea5a commit df6d996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-tools/src/brainfuck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit df6d996

Please sign in to comment.