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 位且包含字母、数字、特殊字符至少两项的密码组合',