We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d2dc744 + 203d0a6 commit cd6f197Copy full SHA for cd6f197
1 file changed
main.go
@@ -148,10 +148,13 @@ func readProcfile(cfg *config) error {
148
index := 0
149
for _, line := range strings.Split(string(content), "\n") {
150
tokens := strings.SplitN(line, ":", 2)
151
- if len(tokens) != 2 || len(tokens[0]) == 0 || tokens[0][0] == '#' {
+ if len(tokens) != 2 {
152
continue
153
}
154
k, v := strings.TrimSpace(tokens[0]), strings.TrimSpace(tokens[1])
155
+ if len(k) == 0 || k[0] == '#' {
156
+ continue
157
+ }
158
if runtime.GOOS == "windows" {
159
v = re.ReplaceAllStringFunc(v, func(s string) string {
160
return "%" + s[1:] + "%"
0 commit comments