From 553fb7bf679145a04e508d38afc5abcae9726851 Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Wed, 8 May 2024 14:28:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=20supervisor=20?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E6=A0=A1=E9=AA=8C=E8=A7=84=E5=88=99=20(#4910?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/global/form-rules.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {