File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ type Options []*Option
1919// IsKey returns true if the given key matches
2020// this option's key in a case-insensitive comparison.
2121func (o * Option ) IsKey (key string ) bool {
22- return strings .ToLower (o .Key ) == strings . ToLower ( key )
22+ return strings .EqualFold (o .Key , key )
2323}
2424
2525func (opts Options ) GoString () string {
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ func (s Subsections) GoString() string {
6161
6262// IsName checks if the name provided is equals to the Section name, case insensitive.
6363func (s * Section ) IsName (name string ) bool {
64- return strings .ToLower (s .Name ) == strings . ToLower ( name )
64+ return strings .EqualFold (s .Name , name )
6565}
6666
6767// 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