fix: bug#16356

This commit is contained in:
leiqiaochu 2023-07-14 14:25:47 +08:00
parent 94e92acfdf
commit b583e70165
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ const validateAddress = (_rule: any, value: string): Promise<any> => {
const sizeValidator = (_rule:any, value: number):Promise<any> =>{
return new Promise(async(resolve,reject)=>{
const posReg = /^\d+$/;
const posReg = /^[1-9]\d*$/;
if(posReg.test(value.toString()) && value >= 0 && value <=65535 ){
return resolve('');
}else {