Fix setting protocols with env

This commit is contained in:
Cohee
2025-02-20 22:28:30 +02:00
parent eb31d7baa2
commit 2b28065c9f
2 changed files with 6 additions and 6 deletions

View File

@@ -787,8 +787,8 @@ export function toBoolean(value) {
* @returns {boolean|string|null} boolean else original input string or null if input is
*/
export function stringToBool(str) {
if (str === 'true') return true;
if (str === 'false') return false;
if (String(str).trim().toLowerCase() === 'true') return true;
if (String(str).trim().toLowerCase() === 'false') return false;
return str;
}