fix: 修改镜像拉取校验规则 (#6145)

Refs #5740
pull/6172/head
ssongliu 4 months ago committed by GitHub
parent 34e14636d4
commit 7da5f7a884
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save