lix02 commited on
Commit
15449ff
·
verified ·
1 Parent(s): 631b4ed

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
index.js CHANGED
@@ -45,7 +45,7 @@ app.get('/', async (req, res) => {
45
  // return matchcib[0];
46
  // 使用正则表达式提取所有的JS文件URL
47
  const allregex = /\/([a-zA-Z0-9_-]+\.br\.js)'/g
48
- const matches = text.match(allregex)
49
 
50
  let scripts = ''
51
  if (matches) {
 
45
  // return matchcib[0];
46
  // 使用正则表达式提取所有的JS文件URL
47
  const allregex = /\/([a-zA-Z0-9_-]+\.br\.js)'/g
48
+ const matches = htmlContent.match(allregex)
49
 
50
  let scripts = ''
51
  if (matches) {