Flag names don't need a consistent case.
This commit is contained in:
parent
6f2eaf3009
commit
90057318c8
2 changed files with 17 additions and 1 deletions
|
@ -65,7 +65,7 @@ func decodeToNode(root *Node, path []string, value string) {
|
|||
|
||||
func containsNode(nodes []*Node, name string) *Node {
|
||||
for _, n := range nodes {
|
||||
if name == n.Name {
|
||||
if strings.EqualFold(name, n.Name) {
|
||||
return n
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue