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