mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 11:58:10 +08:00
fix: 修复邮编校验不准确问题 (#4184)
This commit is contained in:
parent
37b2af56fb
commit
6aea927092
@ -242,9 +242,7 @@ export const validations: {
|
||||
);
|
||||
},
|
||||
isZipcode: function (values, value) {
|
||||
return (
|
||||
!isExisty(value) || isEmpty(value) || /^[1-9]{1}(\d+){5}$/.test(value)
|
||||
);
|
||||
return !isExisty(value) || isEmpty(value) || /^\d{6}$/.test(value);
|
||||
},
|
||||
isId: function (values, value) {
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user