mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-21 17:25:11 +08:00
fix: GLOBALGROUP_SIZE
This commit is contained in:
@@ -699,9 +699,7 @@ export const updateReadMeMd = async (
|
||||
)
|
||||
.replaceAll(
|
||||
'--GLOBALGROUP_SIZE--',
|
||||
newConfig
|
||||
.globalGroups!.reduce((p, c) => p + (c.rules?.length || 0), 0)
|
||||
.toString(),
|
||||
newConfig.globalGroups!.length.toString(),
|
||||
)
|
||||
.replaceAll('--VERSION--', (newConfig.version || 0).toString());
|
||||
await fs.writeFile(process.cwd() + '/README.md', readMeMdText);
|
||||
|
||||
Reference in New Issue
Block a user