We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e57e6cf commit a0516dcCopy full SHA for a0516dc
src/schema-routes/schema-routes.ts
@@ -98,7 +98,7 @@ export class SchemaRoutes {
98
99
// TODO forbid leading symbols [\]^` in a major release (allowed yet for backwards compatibility)
100
const pathParamMatches = (routeName || "").match(
101
- /({[\w[\\\]^`][-_.\w]*})|(:[\w[\\\]^`][-_.\w]*:?)/g,
+ /(?<=\/)({[\w[\\\]^`][-_.\w]*})|(?<=\/)(:[\w[\\\]^`][-_.\w]*:?)/g
102
);
103
104
// used in case when path parameters is not declared in requestInfo.parameters ("in": "path")
0 commit comments