File tree Expand file tree Collapse file tree 2 files changed +2
-262
lines changed
Expand file tree Collapse file tree 2 files changed +2
-262
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -148,12 +148,12 @@ class build {
148148 '__EXAMPLE_SYMBOL__' : 'BTC/USDC' ,
149149 } ;
150150 const exchangeConfig = this . globalConfigs [ 'exchanges' ] [ this . exchange ] ;
151- for ( const key in defaults ) {
151+ const allReplacements = Object . assign ( defaults , exchangeConfig ) ;
152+ for ( const key in allReplacements ) {
152153 const defaultValue = defaults [ key ] ;
153154 let value = exchangeConfig [ key ] || defaultValue ; // use default if value not set
154155 newText = newText . replace ( new RegExp ( `${ key } ` , 'g' ) , value ) ;
155156 }
156- // newText = newText.replace(/__PYTHON_PACKAGE_KEY__/g, sanitizePackageName (exchangeConfig['__PYTHON_PACKAGE_NAME__']));
157157 return newText ;
158158 }
159159
You can’t perform that action at this time.
0 commit comments