File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
modules/openapi-generator/src/main/resources/Javascript/libraries/javascript
javascript-promise-es6/src Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ class ApiClient {
160
160
url = apiBasePath + path;
161
161
}
162
162
163
- url = url.replace(/\{ ([\w-\.]+)\} /g, (fullMatch, key) => {
163
+ url = url.replace(/\{ ([\w-\.# ]+)\} /g, (fullMatch, key) => {
164
164
var value;
165
165
if (pathParams.hasOwnProperty(key)) {
166
166
value = this.paramToString(pathParams[key]);
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ class ApiClient {
159
159
url = apiBasePath + path ;
160
160
}
161
161
162
- url = url . replace ( / \{ ( [ \w -\. ] + ) \} / g, ( fullMatch , key ) => {
162
+ url = url . replace ( / \{ ( [ \w -\. # ] + ) \} / g, ( fullMatch , key ) => {
163
163
var value ;
164
164
if ( pathParams . hasOwnProperty ( key ) ) {
165
165
value = this . paramToString ( pathParams [ key ] ) ;
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ class ApiClient {
159
159
url = apiBasePath + path ;
160
160
}
161
161
162
- url = url . replace ( / \{ ( [ \w -\. ] + ) \} / g, ( fullMatch , key ) => {
162
+ url = url . replace ( / \{ ( [ \w -\. # ] + ) \} / g, ( fullMatch , key ) => {
163
163
var value ;
164
164
if ( pathParams . hasOwnProperty ( key ) ) {
165
165
value = this . paramToString ( pathParams [ key ] ) ;
You can’t perform that action at this time.
0 commit comments