Skip to content

Commit fec0763

Browse files
committed
fix number handling
1 parent 15ecc31 commit fec0763

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

utils/config/config.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,13 @@ func normalizeEnv(key string, value string) (string, any) {
192192
return key, items
193193
}
194194

195-
intValue, intErr := strconv.Atoi(value)
195+
// Treat `+` prefixed Values as strings
196+
if !strings.HasPrefix(value, "+") {
197+
intValue, intErr := strconv.Atoi(value)
196198

197-
if intErr == nil {
198-
return key, intValue
199+
if intErr == nil {
200+
return key, intValue
201+
}
199202
}
200203

201204
return key, value

0 commit comments

Comments
 (0)