opencode-codetime 0.6.6 → 0.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -339,11 +339,12 @@ export const plugin = async (ctx) => {
|
|
|
339
339
|
const displayName = args.project === "current"
|
|
340
340
|
? formatProjectName(_projectName)
|
|
341
341
|
: projectName;
|
|
342
|
+
const escapedName = displayName.replace(/\[/g, "\\[").replace(/\]/g, "\\]");
|
|
342
343
|
if (totalMins !== null) {
|
|
343
344
|
const totalFormatted = formatMinutes(totalMins);
|
|
344
|
-
return `Today's coding time for ${
|
|
345
|
+
return `Today's coding time for ${escapedName}: ${projectFormatted} (Total across all projects: ${totalFormatted})`;
|
|
345
346
|
}
|
|
346
|
-
return `Today's coding time for ${
|
|
347
|
+
return `Today's coding time for ${escapedName}: ${projectFormatted}`;
|
|
347
348
|
}
|
|
348
349
|
// Default: total coding time (original behavior)
|
|
349
350
|
const minutes = await getTodayMinutes(_token);
|