Skip to content

Commit 266d2c9

Browse files
committed
fix(validator): number len msg should be length, not equal
1 parent 4d3dc3b commit 266d2c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/common/helpers/validator/language/chinese.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default {
3131
},
3232
len: {
3333
string: /* istanbul ignore next */ (config) => `请输入 ${config} 位字符`,
34-
number: /* istanbul ignore next */ (config) => `需等于 ${config}`,
34+
number: /* istanbul ignore next */ (config) => `长度应等于 ${config}`,
3535
array: /* istanbul ignore next */ (config) => `请选择 ${config} 项`,
3636
date: /* istanbul ignore next */ (config) => `请选择 ${toLocaleDateString(config, 'zh')}`,
3737
email: /* istanbul ignore next */ (config) => `请输入 ${config} 位字符`,

src/common/helpers/validator/language/english.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default {
3131
},
3232
len: {
3333
string: /* istanbul ignore next */ (config) => `Please input ${config} characters.`,
34-
number: /* istanbul ignore next */ (config) => `The number should equal ${config}`,
34+
number: /* istanbul ignore next */ (config) => `The length should equal ${config}`,
3535
array: /* istanbul ignore next */ (config) => `Please select ${config} items`,
3636
date: /* istanbul ignore next */ (config) => `Please select ${toLocaleDateString(config, 'en')}`,
3737
email: /* istanbul ignore next */ (config) => `Please input ${config} characters.`,

0 commit comments

Comments
 (0)