diff --git a/.github/workflows/issues-check-version.yml b/.github/workflows/issues-check-version.yml index c17b0c66..eda54cc8 100644 --- a/.github/workflows/issues-check-version.yml +++ b/.github/workflows/issues-check-version.yml @@ -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];