Skip to content

Commit b52f154

Browse files
joeybloggsjoeybloggs
authored andcommitted
Merge remote-tracking branch 'upstream/v5-development' into v5-development
2 parents 06aac46 + 314b33a commit b52f154

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

baked_in.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ func hasLengthOf(top interface{}, current interface{}, field interface{}, param
681681
case reflect.String:
682682
p := asInt(param)
683683

684-
return int64(len(st.String())) == p
684+
return int64(len([]rune(st.String()))) == p
685685

686686
case reflect.Slice, reflect.Map, reflect.Array:
687687
p := asInt(param)

0 commit comments

Comments
 (0)