From 7da5f7a884b5911b0194d2fb1d415cec78c0cee6 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Thu, 15 Aug 2024 23:18:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E9=95=9C=E5=83=8F?= =?UTF-8?q?=E6=8B=89=E5=8F=96=E6=A0=A1=E9=AA=8C=E8=A7=84=E5=88=99=20(#6145?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs #5740 --- frontend/src/global/form-rules.ts | 2 +- frontend/src/lang/modules/en.ts | 2 +- frontend/src/lang/modules/tw.ts | 2 +- frontend/src/lang/modules/zh.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/global/form-rules.ts b/frontend/src/global/form-rules.ts index 230d31389..a7faeb515 100644 --- a/frontend/src/global/form-rules.ts +++ b/frontend/src/global/form-rules.ts @@ -211,7 +211,7 @@ const checkImageName = (rule: any, value: any, callback: any) => { if (value === '' || typeof value === 'undefined' || value == null) { callback(new Error(i18n.global.t('commons.rule.imageName'))); } else { - const reg = /^[a-zA-Z0-9]{1}[a-z:A-Z0-9_/.-]{0,149}$/; + const reg = /^[a-zA-Z0-9]{1}[a-z:@A-Z0-9_/.-]{0,256}$/; if (!reg.test(value) && value !== '') { callback(new Error(i18n.global.t('commons.rule.imageName'))); } else { diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index 33443f83d..154778e8a 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -191,7 +191,7 @@ const message = { simpleName: 'Supports non-underscore starting, English, numbers, _, length 3-30', simplePassword: 'Supports non-underscore starting, English, numbers, _, length 1-30', dbName: 'Supports non-special character starting, including English, Chinese, numbers, .-_, with a length of 1-64', - imageName: 'Support English, numbers, :/.-_, length 1-150', + imageName: 'Support English, numbers, :@/.-_, length 1-256', volumeName: 'Support English, numbers, .-_, length 2-30', supervisorName: 'Supports non-special characters starting with English, numbers, - and _, length 1-128', complexityPassword: diff --git a/frontend/src/lang/modules/tw.ts b/frontend/src/lang/modules/tw.ts index 0d350e1b2..4e7188b4a 100644 --- a/frontend/src/lang/modules/tw.ts +++ b/frontend/src/lang/modules/tw.ts @@ -190,7 +190,7 @@ const message = { simpleName: '支持非底線開頭,英文、數字、_,長度3-30', simplePassword: '支持非底線開頭,英文、數字、_,長度1-30', dbName: '支持非特殊字符開頭,英文、中文、數字、.-_,長度1-64', - imageName: '支持英文、數字、:/.-_,長度1-150', + imageName: '支持英文、數字、:@/.-_,長度1-256', volumeName: '支持英文、數字、.-和_,長度2-30', supervisorName: '支援非特殊字元開頭,英文、數字、-和_,長度1-128', complexityPassword: '請輸入長度為 8-30 位,並包含字母、數字、至少兩種特殊字符的密碼組合', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index 7d331cf26..946fd647b 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -190,7 +190,7 @@ const message = { simpleName: '支持非下划线开头,英文、数字、_,长度3-30', simplePassword: '支持非下划线开头,英文、数字、_,长度1-30', dbName: '支持非特殊字符开头,英文、中文、数字、.-_,长度1-64', - imageName: '支持英文、数字、:/.-_,长度1-150', + imageName: '支持英文、数字、:@/.-_,长度1-256', volumeName: '支持英文、数字、.-和_,长度2-30', supervisorName: '支持非特殊字符开头,英文、数字、-和_,长度1-128', complexityPassword: '请输入长度为 8-30 位且包含字母、数字、特殊字符至少两项的密码组合',