File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ type Options []*Option
19
19
// IsKey returns true if the given key matches
20
20
// this option's key in a case-insensitive comparison.
21
21
func (o * Option ) IsKey (key string ) bool {
22
- return strings .ToLower (o .Key ) == strings . ToLower ( key )
22
+ return strings .EqualFold (o .Key , key )
23
23
}
24
24
25
25
func (opts Options ) GoString () string {
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ func (s Subsections) GoString() string {
61
61
62
62
// IsName checks if the name provided is equals to the Section name, case insensitive.
63
63
func (s * Section ) IsName (name string ) bool {
64
- return strings .ToLower (s .Name ) == strings . ToLower ( name )
64
+ return strings .EqualFold (s .Name , name )
65
65
}
66
66
67
67
// Option return the value for the specified key. Empty string is returned if
You can’t perform that action at this time.
0 commit comments