Update index.html

This commit is contained in:
A lucky guy authored and GitHub committed 2024-12-20 20:52:24 +08:00
1 parent 2ec433fa7c
commit 7842a2c5d2
1 file changed
+3 -3
+3 -3
View File
@@ -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 @@
}
}
</style>
</html>
</html>