diff --git a/frontend/src/global/form-rules.ts b/frontend/src/global/form-rules.ts index 04589df8506a..5ceb182ad401 100644 --- a/frontend/src/global/form-rules.ts +++ b/frontend/src/global/form-rules.ts @@ -237,7 +237,7 @@ const checkSupervisorName = (rule: any, value: any, callback: any) => { if (value === '' || typeof value === 'undefined' || value == null) { callback(new Error(i18n.global.t('commons.rule.supervisorName'))); } 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 !== '') { callback(new Error(i18n.global.t('commons.rule.supervisorName'))); } else {