Skip to content

Commit

Permalink
explain: Make field name check case insensitive
Browse files Browse the repository at this point in the history
Signed-off-by: Chance Zibolski <[email protected]>
  • Loading branch information
chancez committed Sep 6, 2024
1 parent 75a6fa7 commit 937d6d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/explain.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Examples:
for _, field := range fields {
foundField := false
for pair := fieldSchema.Properties.Oldest(); pair != nil; pair = pair.Next() {
if strings.ToLower(pair.Key) != field {
if !strings.EqualFold(pair.Key, field) {
continue
}

Expand Down

0 comments on commit 937d6d2

Please sign in to comment.