File tree 4 files changed +14
-10
lines changed
chatgpt-auto-continue/utils/bump
chatgpt-infinity/utils/bump
chatgpt-widescreen/utils/bump
4 files changed +14
-10
lines changed Original file line number Diff line number Diff line change 84
84
85
85
// Collect resourcs
86
86
log . working ( '\nCollecting resources...\n' )
87
- const userJScontent = fs . readFileSync ( userJSfilePath , 'utf-8' ) ,
88
- reResourceURL = new RegExp ( `(?:${ rePatterns . cssURL . source } )|(?:${ rePatterns . jsURL . source } )` , 'gm' ) ,
89
- resourceURLs = [ ...userJScontent . matchAll ( reResourceURL ) ] . map ( match => match [ 1 ] || match [ 2 ] )
87
+ const userJScontent = fs . readFileSync ( userJSfilePath , 'utf-8' )
88
+ const reResourceURL = new RegExp ( // eslint-disable-next-line
89
+ `(?:${ rePatterns . cssURL . source } )|(?:${ rePatterns . jsURL . source } )` , 'gm' )
90
+ const resourceURLs = [ ...userJScontent . matchAll ( reResourceURL ) ] . map ( match => match [ 1 ] || match [ 2 ] )
90
91
log . success ( `${ resourceURLs . length } potentially bumpable resource(s) found.` )
91
92
92
93
// Fetch latest commit hash for adamlui/ai-web-extensions/assets/styles/rising-stars
Original file line number Diff line number Diff line change 84
84
85
85
// Collect resourcs
86
86
log . working ( '\nCollecting resources...\n' )
87
- const userJScontent = fs . readFileSync ( userJSfilePath , 'utf-8' ) ,
88
- reResourceURL = new RegExp ( `(?:${ rePatterns . cssURL . source } )|(?:${ rePatterns . jsURL . source } )` , 'gm' ) ,
89
- resourceURLs = [ ...userJScontent . matchAll ( reResourceURL ) ] . map ( match => match [ 1 ] || match [ 2 ] )
87
+ const userJScontent = fs . readFileSync ( userJSfilePath , 'utf-8' )
88
+ const reResourceURL = new RegExp ( // eslint-disable-next-line
89
+ `(?:${ rePatterns . cssURL . source } )|(?:${ rePatterns . jsURL . source } )` , 'gm' )
90
+ const resourceURLs = [ ...userJScontent . matchAll ( reResourceURL ) ] . map ( match => match [ 1 ] || match [ 2 ] )
90
91
log . success ( `${ resourceURLs . length } potentially bumpable resource(s) found.` )
91
92
92
93
// Fetch latest commit hash for adamlui/ai-web-extensions/assets/styles/rising-stars
Original file line number Diff line number Diff line change 80
80
81
81
// Collect resourcs
82
82
log . working ( '\nCollecting resources...\n' )
83
- const userJScontent = fs . readFileSync ( userJSfilePath , 'utf-8' ) ,
84
- reResourceURL = new RegExp ( `(?:${ rePatterns . cssURL . source } )|(?:${ rePatterns . jsURL . source } )` , 'gm' ) ,
85
- resourceURLs = [ ...userJScontent . matchAll ( reResourceURL ) ] . map ( match => match [ 1 ] || match [ 2 ] )
83
+ const userJScontent = fs . readFileSync ( userJSfilePath , 'utf-8' )
84
+ const reResourceURL = new RegExp ( // eslint-disable-next-line
85
+ `(?:${ rePatterns . cssURL . source } )|(?:${ rePatterns . jsURL . source } )` , 'gm' )
86
+ const resourceURLs = [ ...userJScontent . matchAll ( reResourceURL ) ] . map ( match => match [ 1 ] || match [ 2 ] )
86
87
log . success ( `${ resourceURLs . length } potentially bumpable resource(s) found.` )
87
88
88
89
// Fetch latest commit hash for adamlui/ai-web-extensions/assets/styles/rising-stars
Original file line number Diff line number Diff line change 101
101
// Collect resources
102
102
log . working ( '\nCollecting resources...\n' )
103
103
const urlMap = { } ; let resourceCnt = 0
104
- const reResourceURL = new RegExp ( `(?:${ rePatterns . cssURL . source } )|(?:${ rePatterns . jsURL . source } )` , 'gm' )
104
+ const reResourceURL = new RegExp ( // eslint-disable-next-line
105
+ `(?:${ rePatterns . cssURL . source } )|(?:${ rePatterns . jsURL . source } )` , 'gm' )
105
106
userJSfiles . forEach ( userJSfilePath => {
106
107
const userJScontent = fs . readFileSync ( userJSfilePath , 'utf-8' ) ,
107
108
resourceURLs = [ ...userJScontent . matchAll ( reResourceURL ) ] . map ( match => match [ 1 ] || match [ 2 ] )
You can’t perform that action at this time.
0 commit comments