mirror of
https://github.com/Fishwaldo/validator.git
synced 2025-03-15 19:51:38 +00:00
commit
314b33a481
1 changed files with 1 additions and 1 deletions
|
@ -681,7 +681,7 @@ func hasLengthOf(top interface{}, current interface{}, field interface{}, param
|
|||
case reflect.String:
|
||||
p := asInt(param)
|
||||
|
||||
return int64(len(st.String())) == p
|
||||
return int64(len([]rune(st.String()))) == p
|
||||
|
||||
case reflect.Slice, reflect.Map, reflect.Array:
|
||||
p := asInt(param)
|
||||
|
|
Loading…
Add table
Reference in a new issue