1dffa20435
make stmt cache smaller
2020-10-10 21:35:58 +08:00
8039cc8e59
Merge pull request #4017 from guhan121/fix#4000
...
Prohibit multiple calls SetDefaultMessage.
2020-06-26 17:49:36 +08:00
e725192072
fix #4000
2020-06-25 22:11:32 +08:00
3ce68d6a30
Move many PR's change here since the original authors are responseless
2020-06-23 23:14:51 +08:00
241f10b429
添加16开头手机号验证,162电信,165移动,166/167联通。
2019-10-22 16:58:05 +08:00
b8d626bbea
添加16开头手机号验证,162电信,165移动,166/167联通。
2019-10-22 16:28:19 +08:00
2034d1b101
联通171,175 电信173
2018-12-29 17:41:59 +08:00
4fc95b0d69
gofmt and golint
2017-07-19 00:52:27 +08:00
e72b02b7cc
validation: support required option for some struct tag valids
2017-07-03 16:26:23 +08:00
6e34f43721
Fix break API change
...
support int64 on 64-bit platform
2017-06-28 16:56:37 +08:00
2231841d74
validation: support int64 int32 int16 and int8 type
2017-06-21 14:13:30 +08:00
388a5610fa
Merge pull request #2365 from chesedo/RequiredValidationCatchSpaces
...
[WIP]Have Required validator trim strings to fix #2361
2017-05-18 22:44:15 +08:00
69f0b94745
fix gosimple
2017-05-16 22:21:43 +08:00
d41f4c0a3a
validation: fix email valid
2017-03-12 19:23:46 +08:00
a8a2dffc59
Have Required validator trim strings to fix #2361
...
This will cause the Required validator not to consider fields that has
only spaces or new lines to be regarded as valid. This is done by
checking if the trimmed version of the string is valid.
2017-01-06 10:12:22 +02:00
8bd1be8e29
Update validators.go
...
增加178号段
2016-03-04 11:16:47 +08:00
f925bb9058
golint all the files
2016-01-18 00:18:21 +08:00
687266fb64
Add 179 to valid Phone number
2016-01-07 23:03:32 +08:00
bef6bca397
Add function to set validation default messages
2016-01-05 21:14:35 +08:00
4ba50e5df5
fix #1385
2015-10-12 20:50:58 +08:00
2389bc72f9
golint validation
2015-09-13 00:13:19 +08:00
06b25deab2
Update validators.go
...
Support virtual operators paragraph 170!
2015-07-04 17:55:01 +08:00
d7791ba837
Update validators.go
...
//176 中国联通
//177 中国电信
//145 中国联通
//147 中国移动
//149 中国电信
2015-05-25 09:10:36 +08:00
55b1d6a897
Update validators.go
...
edit mobile regular expression ; add 184 Section No.
2015-05-25 09:10:35 +08:00
91886a4547
bugfix: if a form field type is bool, valid Required should always return true instead of return its value.
2015-05-25 09:10:35 +08:00
a144769515
update the documents & comments
2014-08-18 16:41:43 +08:00
fefd8ddb5b
beego: update licence& fix #669
2014-07-03 23:40:21 +08:00
0f170a80da
update the comments fix #658
2014-06-25 10:39:37 +08:00
c188cbbcb4
update all files License
2014-05-17 02:26:50 +08:00
ad8418720f
bug fixed
2014-03-14 14:47:52 +08:00
7389f0507e
fix #505
2014-03-12 15:56:04 +08:00
83e6079ff7
fix MinSize / MaxSize / Length should use Rune Count
2013-10-16 22:49:06 +08:00
ea9c2cebfd
validation add more info to ValidationError, and put all messages tmpl to a map
2013-09-10 21:51:25 +08:00
dcdfaf36f1
Accept parameters more types
2013-07-28 16:59:35 +08:00
f490141217
Add some validate functions
2013-07-27 20:40:15 +08:00
4c6163baa0
add funcmap
2013-07-24 01:20:24 +08:00
d19de30d9c
add test
2013-07-21 23:46:18 +08:00
6d05163c9f
add validation funcs
2013-07-21 01:37:24 +08:00
a41cd17092
add validators
2013-07-19 16:49:28 +08:00