🐛 Make boolean environment variable parsing case-insensitive (#8500)

Resolves configuration validation errors when boolean environment variables
are provided with mixed case (e.g., PENPOT_TELEMETRY_ENABLED=True). The
parse-boolean function now handles all string variations: true, True, TRUE,
false, False, FALSE.

opencode/Bug-Hunter @ ollama/GLM4.6 with Love

Signed-off-by: Max <60165+34x@users.noreply.github.com>
This commit is contained in:
Maks 2026-03-02 11:26:44 +01:00 committed by GitHub
parent 97d3e31593
commit d61e57099e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -863,7 +863,7 @@
(defn parse-boolean
[v]
(if (string? v)
(case v
(case (str/lower v)
("true" "t" "1") true
("false" "f" "0") false
v)