Skip to content

Commit

Permalink
fix(frontend): 授权规格访问DB规则调整 TencentBlueKing#8166
Browse files Browse the repository at this point in the history
  • Loading branch information
jinquantianxia committed Nov 25, 2024
1 parent 5683a43 commit 3b6ab31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
message: t('DB名称支持通配符_如Data_区分大小写_多个使用英文逗号_分号或换行分隔'),
validator: (value: string) => {
const dbs = value.split(/[\n;,]/);
return _.every(dbs, (item) => (!item ? true : /^[0-9a-zA-Z][0-9a-zA-Z%]*$/.test(item)));
return _.every(dbs, (item) => (!item ? true : /^[_a-zA-Z0-9]/.test(item)));
},
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
message: t('DB名称支持通配符_如Data_区分大小写_多个使用英文逗号_分号或换行分隔'),
validator: (value: string) => {
const dbs = value.split(/[\n;,]/);
return _.every(dbs, (item) => (!item ? true : /^[0-9a-zA-Z][0-9a-zA-Z%]*$/.test(item)));
return _.every(dbs, (item) => (!item ? true : /^[_a-zA-Z0-9]/.test(item)));
},
},
{
Expand Down

0 comments on commit 3b6ab31

Please sign in to comment.