Include support to Mojolicious relaxed placeholders (#17633)

This commit is contained in:
atl3
2024-01-23 15:44:01 +01:00
committed by GitHub
parent 90bd1f361b
commit 4840b366bc
3 changed files with 3 additions and 3 deletions

View File

@@ -159,7 +159,7 @@ class ApiClient {
url = apiBasePath + path;
}
url = url.replace(/\{([\w-\.]+)\}/g, (fullMatch, key) => {
url = url.replace(/\{([\w-\.#]+)\}/g, (fullMatch, key) => {
var value;
if (pathParams.hasOwnProperty(key)) {
value = this.paramToString(pathParams[key]);