@oclif/core 3.26.7 → 3.26.9

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.
@@ -305,7 +305,11 @@ class CommandHelp extends formatter_1.HelpFormatter {
305
305
  const dollarSign = (0, theme_1.colorize)(this.config?.theme?.dollarSign, '$');
306
306
  const bin = (0, theme_1.colorize)(this.config?.theme?.bin, this.config.bin);
307
307
  const command = (0, theme_1.colorize)(this.config?.theme?.command, '<%= command.id %>');
308
- const commandDescription = (0, theme_1.colorize)(this.config?.theme?.sectionDescription, u.replace('<%= command.id %>', '').replace(standardId, '').replace(configuredId, '').trim());
308
+ const commandDescription = (0, theme_1.colorize)(this.config?.theme?.sectionDescription, u
309
+ .replace('<%= command.id %>', '')
310
+ .replace(new RegExp(`^${standardId}`), '')
311
+ .replace(new RegExp(`^${configuredId}`), '')
312
+ .trim());
309
313
  const line = `${dollarSign} ${bin} ${command} ${commandDescription}`.trim();
310
314
  if (line.length > allowedSpacing) {
311
315
  const splitIndex = line.slice(0, Math.max(0, allowedSpacing)).lastIndexOf(' ');
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oclif/core",
3
3
  "description": "base library for oclif CLIs",
4
- "version": "3.26.7",
4
+ "version": "3.26.9",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/core/issues",
7
7
  "dependencies": {
@@ -13,7 +13,7 @@
13
13
  "clean-stack": "^3.0.1",
14
14
  "cli-progress": "^3.12.0",
15
15
  "color": "^4.2.3",
16
- "debug": "^4.3.4",
16
+ "debug": "^4.3.5",
17
17
  "ejs": "^3.1.10",
18
18
  "get-package-type": "^0.1.0",
19
19
  "globby": "^11.1.0",