summaryrefslogtreecommitdiffstats
path: root/model/manifest.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2018-07-16 16:56:55 -0400
committerGitHub <noreply@github.com>2018-07-16 16:56:55 -0400
commitf2c180390599e66fee2f1a8c1a4ab52eea920c51 (patch)
treeb89a130b3b26d6a739eaa66dc2e06315970628ed /model/manifest.go
parent275731578e72d2c6e12cfb2fc315d3446474faec (diff)
downloadchat-f2c180390599e66fee2f1a8c1a4ab52eea920c51.tar.gz
chat-f2c180390599e66fee2f1a8c1a4ab52eea920c51.tar.bz2
chat-f2c180390599e66fee2f1a8c1a4ab52eea920c51.zip
Make plugin IDs case insensitive (#9117)
Diffstat (limited to 'model/manifest.go')
-rw-r--r--model/manifest.go3
1 files changed, 3 insertions, 0 deletions
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
}