Skip to content

Commit

Permalink
allow leading underscore in query param regex since it was allowed ea…
Browse files Browse the repository at this point in the history
…rlier
  • Loading branch information
nicky1038 committed Feb 22, 2025
1 parent bda27ea commit aebb1d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/schema-routes/schema-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class SchemaRoutes {
originalRouteName;

const pathParamMatches = (routeName || "").match(
/({[a-zA-Z]([-_.]*[a-zA-Z0-9])*})|(:[a-zA-Z]([-_.]*[a-zA-Z0-9])*:?)/g,
/({[a-zA-Z_]([-_.]*[a-zA-Z0-9])*})|(:[a-zA-Z_]([-_.]*[a-zA-Z0-9])*:?)/g,
);

// used in case when path parameters is not declared in requestInfo.parameters ("in": "path")
Expand Down

0 comments on commit aebb1d3

Please sign in to comment.