Skip to content

Commit 01d5bd0

Browse files
fix: 解决安装应用 数据库密码字段包含&$提示错误的问题 (#1809)
Refs #1793
1 parent f000f8b commit 01d5bd0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frontend/src/global/form-rules.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,11 +278,11 @@ const checkParamCommon = (rule: any, value: any, callback: any) => {
278278

279279
const checkParamComplexity = (rule: any, value: any, callback: any) => {
280280
if (value === '' || typeof value === 'undefined' || value == null) {
281-
callback(new Error(i18n.global.t('commons.rule.paramComplexity', ['.%@$!&~_-'])));
281+
callback(new Error(i18n.global.t('commons.rule.paramComplexity', ['.%@!~_-'])));
282282
} else {
283-
const reg = /^[a-zA-Z0-9]{1}[a-zA-Z0-9.%@$!&~_-]{5,127}$/;
283+
const reg = /^[a-zA-Z0-9]{1}[a-zA-Z0-9.%@!~_-]{4,126}[a-zA-Z0-9]{1}$/;
284284
if (!reg.test(value) && value !== '') {
285-
callback(new Error(i18n.global.t('commons.rule.paramComplexity', ['.%@$!&~_-'])));
285+
callback(new Error(i18n.global.t('commons.rule.paramComplexity', ['.%@!~_-'])));
286286
} else {
287287
callback();
288288
}

0 commit comments

Comments
 (0)