Skip to content

Commit ff4ba80

Browse files
committed
adapt tests [f]
1 parent 5352034 commit ff4ba80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/as-md.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const linewise = createInterface({
2323

2424
const formattedVals = Object.entries(row)
2525
.map(([key, val]) => {
26-
if (key === 'query') return '<pre>' + val.replace(/\n/g, '<br>') + '</pre>'
26+
if (key === 'query') return '<pre>' + val.trim().replace(/\n/g, '<br>') + '</pre>'
2727
return typeof val === 'number' && !Number.isInteger(val) ? Math.round(val * 100) / 100 : val
2828
})
2929
process.stdout.write(`| ${formattedVals.join(' | ')} |\n`)

0 commit comments

Comments
 (0)