fix: 修复邮编校验不准确问题 (#4184)

This commit is contained in:
RickCole 2022-04-29 12:04:29 +08:00 committed by GitHub
parent 37b2af56fb
commit 6aea927092
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 (