Skip to content

Commit 5618dc5

Browse files
committed
Fix regex pattern in documentation generation for parameter matching
1 parent 7c9ee1d commit 5618dc5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

actions/gls-action/scripts/generateDocs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ async function generateFunctions(sdk: ActionSdk): Promise<string> {
267267
const trimmed = param.trim();
268268

269269
// Match: name?: type OR name: type
270-
const match = trimmed.match(new RegExp(`${paramName}\s*(\\?)?\\s*:\\s*(.+)`));
270+
const match = trimmed.match(new RegExp(`${paramName}\\s*(\\?)?\\s*:\\s*(.+)`));
271271
if (match) {
272272
const isOptional = match[1] === "?";
273273
const type = match[2].trim();
@@ -393,7 +393,7 @@ All shipment functions accept a common set of parameters in addition to their ty
393393

394394
const headers = ["Parameter", "Name", "Type", "Required", "Description"]
395395

396-
let rows = []
396+
const rows = []
397397

398398
definition.parameters.forEach(param => {
399399
const paramInfo = getParamInfo(definition.signature, param.runtimeName);

0 commit comments

Comments
 (0)