diff --git a/docs/index.html b/docs/index.html index 87ae39a..6916b79 100644 --- a/docs/index.html +++ b/docs/index.html @@ -92,8 +92,8 @@ return callback(new Error('DestVersion must not null')); } setTimeout(() => { - if (!/^(\d\.){3}(25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9])$/.test(value)) { - callback(new Error('Please input the format like a.b.c.d (0<=a,b,c<=9, 0<=d<=255; eg: 3.5.0.46)')); + if (!/^((\d|\d\d)\.){3}(25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9])$/.test(value)) { + callback(new Error('Please input the format like a.b.c.d (0<=a,b,c<=99, 0<=d<=255; eg: 3.5.0.46)')); } else { callback(); } @@ -175,4 +175,4 @@ } } - \ No newline at end of file +