Skip to content

Commit

Permalink
chore: apply automated updates
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Jan 8, 2025
1 parent 32f85d1 commit 6d9f0c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/box.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,8 @@ export function box(text: string, _opts: BoxOpts = {}) {
opts.style.padding % 2 === 0 ? opts.style.padding : opts.style.padding + 1;
const height = textLines.length + paddingOffset;
const width =
Math.max(...textLines.map((line) => stripAnsi(line).length)) + paddingOffset;
Math.max(...textLines.map((line) => stripAnsi(line).length)) +
paddingOffset;

Check warning on line 260 in src/utils/box.ts

View check run for this annotation

Codecov / codecov/patch

src/utils/box.ts#L259-L260

Added lines #L259 - L260 were not covered by tests
const widthOffset = width + paddingOffset;

const leftSpace =
Expand Down

0 comments on commit 6d9f0c7

Please sign in to comment.