mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-04 12:52:28 +08:00
doc: update doc for validator package
This commit is contained in:
@@ -69,7 +69,7 @@ func ContainUpper(str string) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// ContainLower check if the string contain at least one lower case letter A-Z.
|
||||
// ContainLower check if the string contain at least one lower case letter a-z.
|
||||
// Play: https://go.dev/play/p/Srqi1ItvnAA
|
||||
func ContainLower(str string) bool {
|
||||
for _, r := range str {
|
||||
@@ -192,7 +192,7 @@ func IsChineseIdNum(id string) bool {
|
||||
return chineseIdMatcher.MatchString(id)
|
||||
}
|
||||
|
||||
// ContainChinese check if the string contain mandarin chinese..
|
||||
// ContainChinese check if the string contain mandarin chinese.
|
||||
// Play: https://go.dev/play/p/7DpU0uElYeM
|
||||
func ContainChinese(s string) bool {
|
||||
return chineseMatcher.MatchString(s)
|
||||
|
||||
Reference in New Issue
Block a user