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