Do lowercase checks in stopwords

This reduces the number of loops we need to do when checking.
This commit is contained in:
Shawn Smith committed 2018-02-25 14:15:19 -05:00
1 parent 73387cbc53
commit 93380ad86a
2 files changed
+4 -2

No files matched your search

+1 -2
View File
@@ -37,8 +37,7 @@ func init() {
base64Chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
hexChars = "1234567890abcdefABCDEF"
stopWords = []string{"setting", "Setting", "SETTING", "info",
"Info", "INFO", "env", "Env", "ENV", "environment", "Environment", "ENVIRONMENT"}
stopWords = []string{"setting", "info", "env", "environment"}
regexes = map[string]*regexp.Regexp{
"PKCS8": regexp.MustCompile("-----BEGIN PRIVATE KEY-----"),