File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -456,11 +456,12 @@ export const plugin: Plugin = async (ctx) => {
456456 ? formatProjectName ( _projectName )
457457 : projectName ;
458458
459+ const escapedName = displayName . replace ( / \[ / g, "\\[" ) . replace ( / \] / g, "\\]" ) ;
459460 if ( totalMins !== null ) {
460461 const totalFormatted = formatMinutes ( totalMins ) ;
461- return `Today's coding time for ${ displayName } :\n\`\`\`\n ${ projectFormatted } (Total across all projects: ${ totalFormatted } )\n\`\`\` ` ;
462+ return `Today's coding time for ${ escapedName } : ${ projectFormatted } (Total across all projects: ${ totalFormatted } )` ;
462463 }
463- return `Today's coding time for ${ displayName } :\n\`\`\`\n ${ projectFormatted } \n\`\`\` ` ;
464+ return `Today's coding time for ${ escapedName } : ${ projectFormatted } ` ;
464465 }
465466
466467 // Default: total coding time (original behavior)
You can’t perform that action at this time.
0 commit comments