Skip to content

Commit

Permalink
Give tab replacement replaceAll logic (#2092)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexJerabek authored Oct 14, 2024
1 parent ed3b07d commit edb9fe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate-docs/scripts/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export function stripSpaces(text: string) {

// Replace each tab with 4 spaces.
for (let i: number = 0; i < lines.length; i++) {
lines[i].replace('\t', ' ');
lines[i].replace(/\t/g, ' ');
}

let isZeroLengthLine: boolean = true;
Expand Down

0 comments on commit edb9fe3

Please sign in to comment.