sync: sync upstream code

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2019-07-23 10:53:42 +08:00
parent e6e9bf0beb
commit 38e396feb0
8 changed files with 148 additions and 143 deletions

View File

@@ -179,7 +179,7 @@ else
function IsIPAddres(Str)
{
var arr = Str.split(".");
if(arr.length !== 3)
if(arr.length !== 4)
return 0;
for(var i = 0; i < arr.length; i++)
if(arr[i] !== "" + ParseNum(arr[i]))