Skip to content

Commit

Permalink
Merge pull request #10 from jstrachan/changes
Browse files Browse the repository at this point in the history
fix bug in safe env var name use
  • Loading branch information
jstrachan authored May 16, 2017
2 parents 1603071 + 9a1a477 commit 31ac3eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ func convertToEnvVarName(text string) string {
lastCharValid := false
for i := 0; i < len(lower); i++ {
ch := lower[i]
if (ch >= 'a' && ch <= 'z') || (ch >= '0' && ch <= '9') {
if (ch >= 'A' && ch <= 'Z') || (ch >= '0' && ch <= '9') {
buffer.WriteString(string(ch))
lastCharValid = true
} else {
Expand Down

0 comments on commit 31ac3eb

Please sign in to comment.