|
|
@ -237,7 +237,7 @@ const checkSupervisorName = (rule: any, value: any, callback: any) => {
|
|
|
|
if (value === '' || typeof value === 'undefined' || value == null) {
|
|
|
|
if (value === '' || typeof value === 'undefined' || value == null) {
|
|
|
|
callback(new Error(i18n.global.t('commons.rule.supervisorName')));
|
|
|
|
callback(new Error(i18n.global.t('commons.rule.supervisorName')));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
const reg = /^[a-zA-Z0-9]{1}[a-zA-Z0-9_-]{1,128}$/;
|
|
|
|
const reg = /^[a-zA-Z0-9]{1}[a-zA-Z0-9_-]{0,128}$/;
|
|
|
|
if (!reg.test(value) && value !== '') {
|
|
|
|
if (!reg.test(value) && value !== '') {
|
|
|
|
callback(new Error(i18n.global.t('commons.rule.supervisorName')));
|
|
|
|
callback(new Error(i18n.global.t('commons.rule.supervisorName')));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|