From f2c180390599e66fee2f1a8c1a4ab52eea920c51 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Mon, 16 Jul 2018 16:56:55 -0400 Subject: Make plugin IDs case insensitive (#9117) --- model/manifest.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'model/manifest.go') diff --git a/model/manifest.go b/model/manifest.go index d6a064d4e..d494df466 100644 --- a/model/manifest.go +++ b/model/manifest.go @@ -9,6 +9,7 @@ import ( "io/ioutil" "os" "path/filepath" + "strings" "gopkg.in/yaml.v2" ) @@ -201,6 +202,7 @@ func FindManifest(dir string) (manifest *Manifest, path string, err error) { return } manifest = &parsed + manifest.Id = strings.ToLower(manifest.Id) return } @@ -220,5 +222,6 @@ func FindManifest(dir string) (manifest *Manifest, path string, err error) { return } manifest = &parsed + manifest.Id = strings.ToLower(manifest.Id) return } -- cgit v1.2.3-1-g7c22