Skip to content

Commit c720d1f

Browse files
fix: don't try to repeat a string a non-integer number of times
lol and indeed lmao https://financialtimes.enterprise.slack.com/archives/C3TJ6KXEU/p1746713725780519
1 parent 0ed595d commit c720d1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/logger/src/styles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const styles = {
2727
info: (string: string): string => styles.infoHighlight(' i ') + ' ' + string,
2828
helpHighlight: colours.bgGreen.black,
2929
help: (string: string): string => styles.helpHighlight(' ? ') + ' ' + string,
30-
ruler: (): string => styles.dim('─'.repeat(process.stdout.columns / 2)),
30+
ruler: (): string => styles.dim('─'.repeat(Math.floor(process.stdout.columns / 2))),
3131
box: (string: string, options: Partial<boxen.Options>) =>
3232
boxen(string, {
3333
borderStyle: 'round',

0 commit comments

Comments
 (0)