Skip to content

Commit

Permalink
Update edit.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjj1024 authored Dec 19, 2024
1 parent d049762 commit 6808aae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ const appRules = reactive<FormRules>({
},
{
validator: (rule, value, callback) => {
const versionPattern = /^\d+\.\d+\.\d+$/ // 匹配如 1.8.8 或 1.9.23
const versionPattern = /^\d\.\d\.\d$/ // 匹配如 1.8.8 或 1.9.23
if (!versionPattern.test(value)) {
callback(new Error(t('versionSemVer')))
} else {
Expand Down

0 comments on commit 6808aae

Please sign in to comment.