lix02 commited on
Commit
44319f1
·
verified ·
1 Parent(s): 4dbc300

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +3 -3
index.js CHANGED
@@ -43,8 +43,8 @@ app.get('/', async (req, res) => {
43
  const matchcib = htmlContent.match(regex);
44
  if (matchcib) {
45
  // return matchcib[0];
46
- const cibname = matchcib[0];
47
- console.log(${cibname});
48
  // 使用正则表达式提取所有的JS文件URL
49
  const allregex = /\/([a-zA-Z0-9_-]+\.br\.js)'/g
50
  const matches = htmlContent.match(allregex)
@@ -61,7 +61,7 @@ app.get('/', async (req, res) => {
61
  return '没有找到匹配的字符串';
62
  });
63
 
64
- console.log(result);
65
  res.set('Content-Type', 'text/plain'); // 设置响应头为纯文本
66
  res.send(result);
67
  // 关闭浏览器
 
43
  const matchcib = htmlContent.match(regex);
44
  if (matchcib) {
45
  // return matchcib[0];
46
+ // const cibname = matchcib[0];
47
+ console.log(htmlContent);
48
  // 使用正则表达式提取所有的JS文件URL
49
  const allregex = /\/([a-zA-Z0-9_-]+\.br\.js)'/g
50
  const matches = htmlContent.match(allregex)
 
61
  return '没有找到匹配的字符串';
62
  });
63
 
64
+ // console.log(result);
65
  res.set('Content-Type', 'text/plain'); // 设置响应头为纯文本
66
  res.send(result);
67
  // 关闭浏览器