Skip to content

Commit d035c1b

Browse files
Update packages/core/src/lib/utils.ts
Co-authored-by: Simon Boudrias <[email protected]>
1 parent 354b8f0 commit d035c1b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/core/src/lib/utils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ export function breakLines(content: string, width: number): string {
1717
let escapeSequence = '';
1818
let inEscape = false;
1919

20-
for (let i = 0; i < line.length; i++) {
21-
const char = line[i]!;
20+
for (const char of line) {
2221

2322
// Detect start of ANSI escape code
2423
if (char === '\x1b') {

0 commit comments

Comments
 (0)