Skip to content

Commit

Permalink
usingToLower in correct place
Browse files Browse the repository at this point in the history
  • Loading branch information
shilangyu committed Jul 25, 2020
1 parent cfc63d3 commit 2d4e092
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand All @@ -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 {
Expand Down

0 comments on commit 2d4e092

Please sign in to comment.