lix02 commited on
Commit
03786d2
·
verified ·
1 Parent(s): 4c6e0cb

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
index.js CHANGED
@@ -91,7 +91,7 @@ app.get('/*', async (req, res) => {
91
  const importmapContent = result.htmlContent.match(/<script type="importmap" nonce="">.*?<\/script>/s);
92
  if (importmapContent) {
93
  let pextractedString = importmapContent[0];
94
- // pextractedString = pextractedString.replace('<script type="importmap" nonce="">', '').replace('<\/script>', '');
95
  //pextractedString = pextractedString.replace(/https:\/\/r\.bing\.com/g, 'https://cfby.nbing.eu.org'); // 删除 https://r.bing.com
96
  pextractedString = pextractedString.replace(/https:\/\/r\.bing\.com/g, ''); // 删除 https://r.bing.com
97
 
 
91
  const importmapContent = result.htmlContent.match(/<script type="importmap" nonce="">.*?<\/script>/s);
92
  if (importmapContent) {
93
  let pextractedString = importmapContent[0];
94
+ pextractedString = pextractedString.replace('<script type="importmap" nonce="">', '').replace('<\/script>', '');
95
  //pextractedString = pextractedString.replace(/https:\/\/r\.bing\.com/g, 'https://cfby.nbing.eu.org'); // 删除 https://r.bing.com
96
  pextractedString = pextractedString.replace(/https:\/\/r\.bing\.com/g, ''); // 删除 https://r.bing.com
97