9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2025-12-19 14:59:32 +00:00

[ci skip] Fix match (#439)

This commit is contained in:
LittleChest
2025-03-23 09:52:38 +08:00
committed by GitHub
parent 86214d4549
commit 2e22de1dff

View File

@@ -26,12 +26,8 @@ jobs:
if (
body.includes("### 服务端版本 Leaves Version")
) {
const versionMatch = body.match(
/### 服务端版本 Leaves Version\n.*?(\d+\.\d+\.\d+)-(\d+).*?/
);
const gitVersionMatch = body.match(
/### 服务端版本 Leaves Version\ngit-Leaves-"[a-z0-9]{7}"/
);
const versionMatch = body.match(/(\d+\.\d+\.\d+)-(\d+)/);
const gitVersionMatch = body.match(/git-Leaves-"[a-z0-9]{7}"/);
if (versionMatch) {
const version = versionMatch[1];