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.
1 parent c940d71 commit 14aca9fCopy full SHA for 14aca9f
index.js
@@ -53,12 +53,12 @@ const convert = {
53
return +value;
54
},
55
bool: function(value) {
56
- const isBool = value === 'true' || value === 'false' || value === 'TRUE' || value === 'FALSE';
+ const isBool = (value || '').toLowerCase() === 'true' || (value || '').toLowerCase() === 'false';
57
if (!isBool) {
58
throw new Error('GetEnv.NoBoolean: ' + value + ' is not a boolean.');
59
}
60
61
- return value === 'true' || value === 'TRUE';
+ return (value || '').toLowerCase() === 'true';
62
63
boolish: function(value) {
64
try {
0 commit comments