diff --git a/lib/config/utils.js b/lib/config/utils.js
index cdb8f73a..1fc98d01 100644
--- a/lib/config/utils.js
+++ b/lib/config/utils.js
@@ -3,9 +3,14 @@
const fs = require('fs')
const path = require('path')
+function isPositiveAnswer (value) {
+ const lowerValue = value.toLowerCase()
+ return lowerValue === 'yes' || lowerValue === '1' || lowerValue === 'true'
+}
+
exports.toBooleanConfig = function toBooleanConfig (configValue) {
if (configValue && typeof configValue === 'string') {
- return (configValue === 'true')
+ return (isPositiveAnswer(configValue))
}
return configValue
}
diff --git a/public/docs/release-notes.md b/public/docs/release-notes.md
index bf5639e2..2fc82e09 100644
--- a/public/docs/release-notes.md
+++ b/public/docs/release-notes.md
@@ -1,5 +1,10 @@
# Release Notes
+## UNRELEASED
+
+### Enhancements
+- Extend boolean environment variable parsing with other positive answers and case insensitivity.
+
## 1.9.7 2023-02-19
### Bugfixes