From e1e3c5fdac6bf3e181d7b1ac6f4e236ffdfb7b3e Mon Sep 17 00:00:00 2001 From: Beisi Zhou Date: Tue, 24 Sep 2024 13:57:45 +0800 Subject: [PATCH] Fix missing a space in command description (#1379) --- powershell/plugins/create-commands-v2.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powershell/plugins/create-commands-v2.ts b/powershell/plugins/create-commands-v2.ts index fc9a06f095..7fcf503415 100644 --- a/powershell/plugins/create-commands-v2.ts +++ b/powershell/plugins/create-commands-v2.ts @@ -396,7 +396,7 @@ export /* @internal */ class Inferrer { // positive test case: The operation to create or update the extension. // negative test case: Starts an UpdateRun const createOrUpdateRegex = /((create or update)|(creates or updates)|(create)|(update)|(creates)|(updates))([^a-zA-Z0-9])/gi; - operation.language.default.description = operation.language.default.description.replace(createOrUpdateRegex, `${variant.action.capitalize()}`); + operation.language.default.description = operation.language.default.description.replace(createOrUpdateRegex, `${variant.action.toLowerCase()} `); const op = await this.addCommandOperation(vname, parameters, operation, variant, state, preOperations, commandType); // if this has a body with it, let's add that parameter