Skip to content

Commit 839cce9

Browse files
Should use strings.EqualFold(a, b) instead of strings.ToLower(a) == strings.ToLower(b)
1 parent 770edd1 commit 839cce9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/aozora-bunko/facade/lookup-book.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var contentMap = map[ContentType]string{
3030

3131
func NewContent(s string) ContentType {
3232
for k, v := range contentMap {
33-
if strings.ToLower(s) == strings.ToLower(v) {
33+
if strings.EqualFold(s, v) {
3434
return k
3535
}
3636
}

0 commit comments

Comments
 (0)