Skip to content

Releases: tlxfif/complexValidate

第二个版本

10 Jul 14:08
54c991c
Compare
Choose a tag to compare

1.把js内置对象名字改为complexValidate
2.验证类型名称属于包含关系出现的bug
3.把在自定义验证类型regex函数参数列表进行修正
由 function (input,multiRegex)
改为function (item,group,regex)
1)item为当前验证对象
2)group不变,为当前验证范围中带有该验证类型的数组
3)multiRegex改为regex,只需要传一个需要验证的函数和验证类型字符串:
xxx:{
type:'fun',
regex:function (i,j,regex) {
return regex(i,"int|notNull|length(1,5)")
}
}

v0.3

10 Jul 14:03
f5df03b
Compare
Choose a tag to compare

1.把js内置对象名字改为complexValidate
2.验证类型名称属于包含关系出现的bug
3.把在自定义验证类型regex函数参数列表进行修正
由 function (input,multiRegex)
改为function (item,group,regex)
1)item为当前验证对象
2)group不变,为当前验证范围中带有该验证类型的数组
3)multiRegex改为regex,只需要传一个需要验证的函数和验证类型字符串:
xxx:{
type:'fun',
regex:function (i,j,regex) {
return regex(i,"int|notNull|length(1,5)")
}
}