Skip to content

Commit a0516dc

Browse files
author
Smile Chang
committed
fix colon issue (#532)
1 parent e57e6cf commit a0516dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/schema-routes/schema-routes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export class SchemaRoutes {
9898

9999
// TODO forbid leading symbols [\]^` in a major release (allowed yet for backwards compatibility)
100100
const pathParamMatches = (routeName || "").match(
101-
/({[\w[\\\]^`][-_.\w]*})|(:[\w[\\\]^`][-_.\w]*:?)/g,
101+
/(?<=\/)({[\w[\\\]^`][-_.\w]*})|(?<=\/)(:[\w[\\\]^`][-_.\w]*:?)/g
102102
);
103103

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

0 commit comments

Comments
 (0)