Commit 5829e95
committed
fix(abbreviateCount): return placeholder for non-numeric input instead of unguarded padStart
padStart only pads, never truncates — a non-numeric raw string would pass
through at its original width and break column alignment. Return ' ?'
instead to keep COL_COUNT width while visually flagging the unexpected input.1 parent c4dfd99 commit 5829e95
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
334 | 339 | | |
335 | 340 | | |
336 | 341 | | |
| |||
0 commit comments