File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ if (argv.production) {
159159let content = output . map ( f => f . content ) . join ( separator ) ;
160160
161161function apply_replacements ( text ) {
162- const libraries = [ ... new Set ( text . match ( new RegExp ( '@@BQ_LIBRARY_.* _BUCKET@@' , 'g' ) ) ) ] ;
162+ const libraries = [ ... new Set ( content . match ( new RegExp ( '@@BQ_LIBRARY_[^@]*? _BUCKET@@' , 'g' ) ) ) ] ;
163163 for ( let library of libraries ) {
164164 let libraryName = library . replace ( '@@BQ_LIBRARY_' , '' ) . replace ( '_BUCKET@@' , '' ) . toLowerCase ( ) ;
165165 if ( makelib == libraryName ) {
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ function add (f, include) {
134134functions . forEach ( f => add ( f ) ) ;
135135
136136const content = output . map ( f => f . content ) . join ( '\n' ) ;
137- let libraries = [ ... new Set ( content . match ( new RegExp ( '@@BQ_LIBRARY_.* _BUCKET@@' , 'g' ) ) ) ]
137+ let libraries = [ ... new Set ( content . match ( new RegExp ( '@@BQ_LIBRARY_[^@]*? _BUCKET@@' , 'g' ) ) ) ]
138138 . map ( l => l . replace ( '@@BQ_LIBRARY_' , '' ) . replace ( '_BUCKET@@' , '' ) . toLowerCase ( ) ) ;
139139
140140// Exclude libraries pointed by makelib as they are deployed separately
You can’t perform that action at this time.
0 commit comments