Skip to content

Commit

Permalink
use builtin padStart now that it is available
Browse files Browse the repository at this point in the history
  • Loading branch information
haneefdm committed Aug 27, 2023
1 parent 578e1a1 commit b02ba99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/rtt_terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ function padLeft(str: string, len: number, chr = ' '): string {
if (str.length >= len) {
return str;
}
str = chr.repeat(len - str.length) + str;
str = str.padStart(len, chr);
return str;
}

Expand Down

0 comments on commit b02ba99

Please sign in to comment.