Update version check (#67)

This commit is contained in:
hyde zhou
2026-02-03 11:09:12 +08:00
committed by GitHub
parent 100bccaf9e
commit 5f4d70d989
+1 -1
View File
@@ -14,7 +14,7 @@ if (!(matchResult && matchResult[1])) {
const branchVersion = matchResult[1];
const versionRegExpMap = {
'./package.json': /"version": "(.*)"/,
'./package.json': /"version": "(\d+\.\d+\.\d+)(?:-.*)?"/,
'./cocos/core/global-exports.ts': /engineVersion = '(.*)'/,
};
for (const filePath in versionRegExpMap) {