Skip to content

Commit 050001b

Browse files
authored
fix cdimascio#380: allow any string to be servers variables
1 parent 080ae7a commit 050001b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/framework/base.path.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class BasePath {
2020
let urlPath = this.findUrlPath(server.url);
2121
if (/{\w+}/.test(urlPath)) {
2222
// has variable that we need to check out
23-
urlPath = urlPath.replace(/{(\w+)}/g, (substring, p1) => `:${p1}`);
23+
urlPath = urlPath.replace(/{(\w+)}/g, (substring, p1) => `:${p1}(.*)`);
2424
}
2525
this.path = urlPath;
2626
for (const variable in server.variables) {

0 commit comments

Comments
 (0)