diff --git a/src/processTracer.ts b/src/processTracer.ts index fbdf7d2..a379d91 100644 --- a/src/processTracer.ts +++ b/src/processTracer.ts @@ -218,13 +218,14 @@ export async function report( for (const command of filteredCommands) { const extraProcessInfo: string | null = getExtraProcessInfo(command) + const escapedName = command.name.replace(/:/g, '#colon;') if (extraProcessInfo) { chartContent = chartContent.concat( '\t', - `${command.name} (${extraProcessInfo}) : ` + `${escapedName} (${extraProcessInfo}) : ` ) } else { - chartContent = chartContent.concat('\t', `${command.name} : `) + chartContent = chartContent.concat('\t', `${escapedName} : `) } if (command.exitCode !== 0) { // to show red