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 98999c9 commit 45d0600Copy full SHA for 45d0600
packages/knip/src/util/table.ts
@@ -75,11 +75,7 @@ export class Table {
75
const columnWidths = columns.reduce(
76
(acc, col) => {
77
acc[col] = Math.max(
78
- ...this.rows.map(row =>
79
- row[col]?.formatted
80
- ? stripVTControlCharacters(row[col].formatted).length
81
- : String(row[col]?.value || '').length
82
- )
+ ...this.rows.map(row => stripVTControlCharacters(row[col]?.formatted ?? String(row[col].value || '')).length)
83
);
84
return acc;
85
},
0 commit comments