Skip to content

Commit b1ddbe6

Browse files
committed
Added eslint-disable-next-line to avoid false no-useless-non-capturing-group positive (ota-meshi/eslint-plugin-regexp#793) ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
1 parent e28da32 commit b1ddbe6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

utils/bump/js-resources.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,10 @@
8080

8181
// Collect resourcs
8282
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])
8687
log.success(`${resourceURLs.length} potentially bumpable resource(s) found.`)
8788

8889
// Fetch latest commit hash for adamlui/ai-web-extensions/assets/styles/rising-stars

0 commit comments

Comments
 (0)