mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
Fix
This commit is contained in:
@@ -77,8 +77,8 @@ module.exports = class EvalCommand extends Command {
|
||||
}
|
||||
}
|
||||
|
||||
makeResultMessages(result, hrDiff, input = null, lang = 'javascript') {
|
||||
const inspected = util.inspect(result, { depth: 0 })
|
||||
makeResultMessages(result, hrDiff, input = null, lang = 'javascript', inspect = true) {
|
||||
const inspected = (inspect ? util.inspect(result, { depth: 0 }) : result)
|
||||
.replace(nlPattern, '\n')
|
||||
.replace(this.sensitivePattern, '--snip--');
|
||||
const split = inspected.split('\n');
|
||||
|
||||
Reference in New Issue
Block a user