From 45e59ec8b64845fb084ef86f1b4423156c28c7ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?1024=E5=B0=8F=E7=A5=9E?= <15670339118@163.com> Date: Thu, 19 Dec 2024 15:49:00 +0800 Subject: [PATCH] update --- src/pages/edit.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/edit.vue b/src/pages/edit.vue index adbfa0b4..7cc53cf0 100644 --- a/src/pages/edit.vue +++ b/src/pages/edit.vue @@ -436,7 +436,7 @@ const appRules = reactive({ }, { validator: (rule, value, callback) => { - const versionPattern = /^\d+\.\d+\.\d+$/ // 匹配如 1.8.8 或 1.9.23 + const versionPattern = /^\d\.\d\.\d$/ // 1.8.8 or 1.9.2 if (!versionPattern.test(value)) { callback(new Error(t('versionSemVer'))) } else { @@ -1252,9 +1252,9 @@ const dispatchAction = async () => { // create issue const createIssue = async (url: string) => { const issueRes: any = await githubApi.createIssue({ - body: `编译出错:${url}`, + body: `build error:${url}`, labels: ['failure'], - title: `${store.currentProject.name}编译出错`, + title: `${store.currentProject.name} build error`, }) console.log('issueRes---', issueRes) }