From 2d4e092189c0ebd1e2c17865e7e8f4d1f9937416 Mon Sep 17 00:00:00 2001 From: shilangyu Date: Sat, 25 Jul 2020 12:57:37 +0200 Subject: [PATCH] usingToLower in correct place --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 6cab4f6..6caba88 100644 --- a/main.go +++ b/main.go @@ -70,7 +70,7 @@ func matchingManifests(path string, term string) (res []match) { var parser fastjson.Parser for _, file := range files { - name := strings.ToLower(file.Name()) + name := file.Name() // its not a manifest, skip if !strings.HasSuffix(name, ".json") { @@ -84,7 +84,7 @@ func matchingManifests(path string, term string) (res []match) { version := string(result.GetStringBytes("version")) - if strings.Contains(name, term) { + if strings.Contains(strings.ToLower(name), term) { // the name matches res = append(res, match{name[:len(name)-5], version, ""}) } else {