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 7edabde commit b5d077fCopy full SHA for b5d077f
src/schema-routes/schema-routes.ts
@@ -95,8 +95,9 @@ export class SchemaRoutes {
95
this.config.hooks.onPreBuildRoutePath(originalRouteName) ||
96
originalRouteName;
97
98
+ // TODO forbid leading symbols [\]^` in a major release (allowed yet for backwards compatibility)
99
const pathParamMatches = (routeName || "").match(
- /({[a-zA-Z]([-_.]*[a-zA-Z0-9])*})|(:[a-zA-Z]([-_.]*[a-zA-Z0-9])*:?)/g,
100
+ /({[a-zA-Z_[\\\]^`]([-_.]*[a-zA-Z0-9])*})|(:[a-zA-Z_[\\\]^`]([-_.]*[a-zA-Z0-9])*:?)/g,
101
);
102
103
// used in case when path parameters is not declared in requestInfo.parameters ("in": "path")
0 commit comments