Browse Source

fix: 字符校验修正 (#5761)

pull/5775/head v1.10.12-beta
John Bro 4 months ago committed by GitHub
parent
commit
a5bf435d2c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      frontend/src/global/form-rules.ts

2
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,150}$/;
const reg = /^[a-zA-Z0-9]{1}[a-z:A-Z0-9_/.-]{0,149}$/;
if (!reg.test(value) && value !== '') {
callback(new Error(i18n.global.t('commons.rule.imageName')));
} else {

Loading…
Cancel
Save