Skip to content

Commit

Permalink
fix cdimascio#380: allow any string to be servers variables
Browse files Browse the repository at this point in the history
  • Loading branch information
xg1990 authored Sep 30, 2020
1 parent 080ae7a commit 050001b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/framework/base.path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class BasePath {
let urlPath = this.findUrlPath(server.url);
if (/{\w+}/.test(urlPath)) {
// has variable that we need to check out
urlPath = urlPath.replace(/{(\w+)}/g, (substring, p1) => `:${p1}`);
urlPath = urlPath.replace(/{(\w+)}/g, (substring, p1) => `:${p1}(.*)`);
}
this.path = urlPath;
for (const variable in server.variables) {
Expand Down

0 comments on commit 050001b

Please sign in to comment.