Skip to content

Commit

Permalink
feat: 修改 supervisor 名称校验规则 (#4910)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengkunwang223 authored and ssongliu committed May 13, 2024
1 parent a14982d commit 553fb7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/global/form-rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 553fb7b

Please sign in to comment.