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:
8
.github/workflows/issues-check-version.yml
vendored
8
.github/workflows/issues-check-version.yml
vendored
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user