mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-23 18:49:21 +08:00
parent
34e14636d4
commit
7da5f7a884
@ -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 {
|
||||
|
@ -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:
|
||||
|
@ -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 位,並包含字母、數字、至少兩種特殊字符的密碼組合',
|
||||
|
@ -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 位且包含字母、数字、特殊字符至少两项的密码组合',
|
||||
|
Loading…
Reference in New Issue
Block a user