dudaodong
41bafdef92
refact: remove unused code
2025-10-29 21:10:30 +08:00
dudaodong
7d4b9510a2
feat: add IsChineseHMPassport
2025-08-21 14:13:43 +08:00
dudaodong
9f0ad2354a
feat: update some test fucntions
2025-08-21 10:52:44 +08:00
dudaodong
385e64cc52
feat: add IsPassport
2025-08-13 14:01:24 +08:00
dudaodong
539078e6b8
doc: add play ground demo for v2.3.6
2025-05-29 11:50:17 +08:00
dudaodong
1b73483945
doc: update doc for v2.3.6
2025-05-28 11:30:12 +08:00
dudaodong
f7be4190f1
test: format test code
2025-03-27 10:49:40 +08:00
dudaodong
8089b71bfd
feat: add IsAlphaNumeric
2025-03-15 14:57:21 +08:00
dudaodong
6dfdadd34e
doc: update for release v2.3.5
2025-03-07 14:19:07 +08:00
chentong
a9c75b081d
feat(validator): add IsIpPort ( #294 )
...
* fix: json tag omitempty convert error
* feat(validator): add IsIpPort
- Add IsIpPort function to check if a string is in the format ip:port
- Update validator_test.go to include tests for the new IsIpPort function
- Add an example test for IsIpPort in validator_example_test.go
2025-02-17 10:03:15 +08:00
Cannian
4b3a62b36a
perf(validator): check Ipv4、Ipv6 by more graceful method ( #220 )
2024-05-25 08:58:33 +08:00
dudaodong
5381450bea
feat: fix email validation failed
2024-04-18 14:18:33 +08:00
dudaodong
c5297ec329
fix: fix failed unit test
2023-12-11 15:04:54 +08:00
dudaodong
dcef06e9da
fix: fix dns regex matcher
2023-12-07 09:54:03 +08:00
dengrandpa
9cd6eb4ddf
fix(validator): [IsChineseIdNum] fix 身份证效验 新增 省份、生日、效验码效验,修改ContainLower/IsNumber 注释错误 ( #149 )
...
* fix: 修改 README_zh-CN.md datetime 重复 IsLeapYear问题
* fix: 修改 README_zh-CN.md 18. slice 回到目录
* fix(validator): [IsChineseIdNum] fix 身份证效验 新增 省份、生日、效验码效验,修改ContainLower/IsNumber 注释错误
* fix(validator): [IsChineseIdNum] fix 修改测试
---------
Co-authored-by: dengjiaxiang <19181730103@189.cn >
Co-authored-by: dengrandpa <dengrandpapa@outlook.com >
2023-12-01 16:42:35 +08:00
dudaodong
b698fec50f
doc: add go playground demo
2023-09-11 15:59:35 +08:00
dudaodong
f198711d1c
doc: add doc for new functions
2023-09-07 16:03:08 +08:00
dudaodong
19378ca4d1
feat: add IsVisa, IsMasterCard, IsAmericanExpress, IsUnionPay, IsChinaUnionPay
2023-09-06 18:05:15 +08:00
dudaodong
71c7733eb0
feat: add IsBin, IsHex, IsBase64URL, IsJWT
2023-09-06 17:42:31 +08:00
dudaodong
20786c360b
test: add cases for TestIsIpV4 and TestIsIpV6
2023-09-06 16:27:14 +08:00
dudaodong
8229de2f10
test: add parallel running for all unit test functions
2023-06-30 10:18:45 +08:00
dudaodong
286a187942
fix: fix go report validation issue
2023-06-01 11:49:49 +08:00
will
78aa679670
feat: add ContainNumber for validator ( #97 )
...
Co-authored-by: sunyaoyao <sunyaoyao@kezaihui.com >
2023-05-19 11:23:19 +08:00
dudaodong
fcb3b97b45
doc: add docment and playground demo for v2.1.19
2023-04-18 15:21:03 +08:00
dudaodong
18f01ffd75
doc: update doc and example for validator
2023-04-06 10:46:31 +08:00
dudaodong
046f3e0bf9
feat: add IsInt, IsFloat, IsNumber
2023-04-05 14:07:23 +08:00
dudaodong
8bdd46bda4
doc: add play ground demo
2023-04-03 10:33:57 +08:00
dudaodong
bc25e7a037
feat: add IsPrintable
2023-03-31 12:00:32 +08:00
dudaodong
e56a8a1ef5
feat: add IsASCII
2023-03-30 14:41:32 +08:00
dudaodong
6f2f1f3004
fix: IsZeroValue support pointer
2023-02-06 19:36:36 +08:00
Cai Zhijiang
17e8d2bb6d
部分城市有4位区号+8位号码 ( #69 )
2023-02-06 09:47:21 +08:00
dudaodong
e21dd07d46
doc: update doc for validator package
2023-01-06 14:14:00 +08:00
dudaodong
4044deac70
test: add examples for validator package
2023-01-06 11:31:51 +08:00
dudaodong
2725575d2f
doc: add doc for IsGBK'
2022-12-09 19:28:45 +08:00
dudaodong
af5cfe6da1
feat: add IsGBK validator
2022-12-09 17:36:59 +08:00
dudaodong
dd613e98b2
refator: clean code
2022-12-06 20:00:41 +08:00
dudaodong
ef28b52963
fix: fix regex isChineseMobileRegexMatcher not work
2022-08-28 20:58:34 +08:00
dudaodong
fc10689b25
feat: add IsZeroValue function
2022-08-27 18:57:45 +08:00
dudaodong
50c6e51393
upgrade go module v2
2022-03-17 10:57:35 +08:00
dudaodong
5e318a78d2
refactor: remove unused code
2022-02-15 11:19:07 +08:00
dudaodong
aa64bf5bee
feat: add IsUrl func
2022-01-22 18:11:52 +08:00
dudaodong
261370e30d
fix: os.go/ExecCommand make error the last return value
2022-01-17 16:57:38 +08:00
dudaodong
22b3c4dd42
feat: add validator functions, IsAllUpper, IsAllLower, ContainUpper, ContainLower, ContainLetter, IsJSON and IsPort
2022-01-13 20:19:41 +08:00
dudaodong
d3525dfe8f
refactor: rewrite all unit test functions with assert
2022-01-09 15:34:17 +08:00
dudaodong
c625a88067
refactor: rename package 'utils' to 'internal'
2021-12-31 11:36:11 +08:00
donutloop
9ad9d1805b
Regex validators: Precompile all known regex patterns ( #3 )
...
Reduce executions time of pattern matching, regex patterns are expensive to
compile at runtime.
2021-12-26 21:16:20 +08:00
dudaodong
fee6cb17f3
update: update validator test function
2021-11-29 15:53:48 +08:00
dudaodong
0c4b512084
fmt: fix some gofmt issue
2021-11-29 13:01:46 +08:00
dudaodong
3254591ab9
publish lancet
2021-11-28 21:28:23 +08:00