more and more

This commit is contained in:
辉鸭蛋
2024-10-14 00:12:59 +08:00
parent 2d884f6b6a
commit 5171f6950a
39 changed files with 4103 additions and 29 deletions

View File

@@ -34,7 +34,8 @@ function extractInfoFromJSFolder(folderPath) {
const manifestPath = path.join(folderPath, 'manifest.json');
if (fs.existsSync(manifestPath)) {
try {
const manifestContent = fs.readFileSync(manifestPath, 'utf8');
let manifestContent = fs.readFileSync(manifestPath, 'utf8');
manifestContent = manifestContent.replace(/,(\s*[}\]])/g, '$1');
const manifest = JSON.parse(manifestContent);
const combinedDescription = `${manifest.name || ''}~|~${manifest.description || ''}`;
return {