diff options
Diffstat (limited to 'plumbing/format/config/section.go')
-rw-r--r-- | plumbing/format/config/section.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plumbing/format/config/section.go b/plumbing/format/config/section.go index b7a684a..07f72f3 100644 --- a/plumbing/format/config/section.go +++ b/plumbing/format/config/section.go @@ -61,7 +61,7 @@ func (s Subsections) GoString() string { // IsName checks if the name provided is equals to the Section name, case insensitive. func (s *Section) IsName(name string) bool { - return strings.ToLower(s.Name) == strings.ToLower(name) + return strings.EqualFold(s.Name, name) } // Subsection returns a Subsection from the specified Section. If the |