Authored by xuqi

ip regx

... ... @@ -90,7 +90,7 @@
function validateIP(ip) {
if (ip === 'localhost' ||
/^(0|[1-9]?|1\d\d?|2[0-4]\d|25[0-5])\.(0|[1-9]?|1\d\d?|2[0-4]\d|25[0-5])\.(0|[1-9]?|1\d\d?|2[0-4]\d|25[0-5])\.(0|[1-9]?|1\d\d?|2[0-4]\d|25[0-5])$/.test(ip))
/^(\d)+\.(\d)+\.(\d)+\.(\d)+$/.test(ip))
{
$ip.closest('.form-group').removeClass('has-error');
return true;
... ...