We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5352034 commit ff4ba80Copy full SHA for ff4ba80
benchmark/as-md.js
@@ -23,7 +23,7 @@ const linewise = createInterface({
23
24
const formattedVals = Object.entries(row)
25
.map(([key, val]) => {
26
- if (key === 'query') return '<pre>' + val.replace(/\n/g, '<br>') + '</pre>'
+ if (key === 'query') return '<pre>' + val.trim().replace(/\n/g, '<br>') + '</pre>'
27
return typeof val === 'number' && !Number.isInteger(val) ? Math.round(val * 100) / 100 : val
28
})
29
process.stdout.write(`| ${formattedVals.join(' | ')} |\n`)
0 commit comments