Skip to content

Commit

Permalink
fix the description issue for get+put command (#1334)
Browse files Browse the repository at this point in the history
  • Loading branch information
BethanyZhou committed Apr 22, 2024
1 parent 70c9348 commit b522cef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion powershell/plugins/create-commands-v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ export /* @internal */ class Inferrer {

async addVariant(vname: string, body: Parameter | null, bodyParameterName: string, parameters: Array<Parameter>, operation: Operation, variant: CommandVariant, state: State, preOperations: Array<Operation> | undefined, commandType?: CommandType): Promise<CommandOperation> {
// beth: filter command description for New/Update command
const createOrUpdateRegex = /creates? or updates?/gi;
const createOrUpdateRegex = /(creates? or updates?)|(creates?)|(updates?)/gi;
operation.language.default.description = operation.language.default.description.replace(createOrUpdateRegex, `${variant.action.capitalize()}`);
const op = await this.addCommandOperation(vname, parameters, operation, variant, state, preOperations, commandType);

Expand Down

0 comments on commit b522cef

Please sign in to comment.