diff --git a/generate-docs/scripts/util.ts b/generate-docs/scripts/util.ts index 14ba420960..e43bbcd254 100644 --- a/generate-docs/scripts/util.ts +++ b/generate-docs/scripts/util.ts @@ -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;