Skip to content

Commit bbc44f7

Browse files
committed
Eliminated reResURL, condensed resURLs
1 parent 27edb37 commit bbc44f7

File tree

7 files changed

+7
-14
lines changed

7 files changed

+7
-14
lines changed

amazongpt/utils/bump/resources.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@
101101
// Collect resourcs
102102
log.working('\nCollecting resources...\n')
103103
const userJScontent = fs.readFileSync(userJSfilePath, 'utf-8'),
104-
reResURL = new RegExp(regEx.jsURL.source, 'gm'),
105-
resURLs = [...userJScontent.matchAll(reResURL)].map(match => match[1] || match[2])
104+
resURLs = [...userJScontent.matchAll(new RegExp(regEx.jsURL.source, 'gm'))].map(match => match[1])
106105
log.success(`${resURLs.length} potentially bumpable resource(s) found.`)
107106

108107
// Fetch latest commit hash for adamlui/ai-web-extensions

bravegpt/utils/bump/resources.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@
101101
// Collect resourcs
102102
log.working('\nCollecting resources...\n')
103103
const userJScontent = fs.readFileSync(userJSfilePath, 'utf-8'),
104-
reResURL = new RegExp(regEx.jsURL.source, 'gm'),
105-
resURLs = [...userJScontent.matchAll(reResURL)].map(match => match[1] || match[2])
104+
resURLs = [...userJScontent.matchAll(new RegExp(regEx.jsURL.source, 'gm'))].map(match => match[1])
106105
log.success(`${resURLs.length} potentially bumpable resource(s) found.`)
107106

108107
// Fetch latest commit hash for adamlui/ai-web-extensions

chatgpt-auto-continue/utils/bump/resources.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@
105105
// Collect resourcs
106106
log.working('\nCollecting resources...\n')
107107
const userJScontent = fs.readFileSync(userJSfilePath, 'utf-8'),
108-
reResURL = new RegExp(regEx.jsURL.source, 'gm'),
109-
resURLs = [...userJScontent.matchAll(reResURL)].map(match => match[1] || match[2])
108+
resURLs = [...userJScontent.matchAll(new RegExp(regEx.jsURL.source, 'gm'))].map(match => match[1])
110109
log.success(`${resURLs.length} potentially bumpable resource(s) found.`)
111110

112111
// Fetch latest commit hash for adamlui/ai-web-extensions

chatgpt-infinity/utils/bump/resources.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@
105105
// Collect resourcs
106106
log.working('\nCollecting resources...\n')
107107
const userJScontent = fs.readFileSync(userJSfilePath, 'utf-8'),
108-
reResURL = new RegExp(regEx.jsURL.source, 'gm'),
109-
resURLs = [...userJScontent.matchAll(reResURL)].map(match => match[1] || match[2])
108+
resURLs = [...userJScontent.matchAll(new RegExp(regEx.jsURL.source, 'gm'))].map(match => match[1])
110109
log.success(`${resURLs.length} potentially bumpable resource(s) found.`)
111110

112111
// Fetch latest commit hash for adamlui/ai-web-extensions

chatgpt-widescreen/utils/bump/resources.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@
101101
// Collect resourcs
102102
log.working('\nCollecting resources...\n')
103103
const userJScontent = fs.readFileSync(userJSfilePath, 'utf-8'),
104-
reResURL = new RegExp(regEx.jsURL.source, 'gm'),
105-
resURLs = [...userJScontent.matchAll(reResURL)].map(match => match[1] || match[2])
104+
resURLs = [...userJScontent.matchAll(new RegExp(regEx.jsURL.source, 'gm'))].map(match => match[1])
106105
log.success(`${resURLs.length} potentially bumpable resource(s) found.`)
107106

108107
// Fetch latest commit hash for adamlui/ai-web-extensions

duckduckgpt/utils/bump/resources.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@
101101
// Collect resourcs
102102
log.working('\nCollecting resources...\n')
103103
const userJScontent = fs.readFileSync(userJSfilePath, 'utf-8'),
104-
reResURL = new RegExp(regEx.jsURL.source, 'gm'),
105-
resURLs = [...userJScontent.matchAll(reResURL)].map(match => match[1] || match[2])
104+
resURLs = [...userJScontent.matchAll(new RegExp(regEx.jsURL.source, 'gm'))].map(match => match[1])
106105
log.success(`${resURLs.length} potentially bumpable resource(s) found.`)
107106

108107
// Fetch latest commit hash for adamlui/ai-web-extensions

googlegpt/utils/bump/resources.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@
101101
// Collect resourcs
102102
log.working('\nCollecting resources...\n')
103103
const userJScontent = fs.readFileSync(userJSfilePath, 'utf-8'),
104-
reResURL = new RegExp(regEx.jsURL.source, 'gm'),
105-
resURLs = [...userJScontent.matchAll(reResURL)].map(match => match[1] || match[2])
104+
resURLs = [...userJScontent.matchAll(new RegExp(regEx.jsURL.source, 'gm'))].map(match => match[1])
106105
log.success(`${resURLs.length} potentially bumpable resource(s) found.`)
107106

108107
// Fetch latest commit hash for adamlui/ai-web-extensions

0 commit comments

Comments
 (0)