mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-12-23 23:49:11 +01:00
Add on/off support for parsing boolean.
This commit is contained in:
parent
749c72e6a6
commit
f964fe3750
@ -13,11 +13,13 @@ function parseBoolean(stringValue) {
|
||||
switch(stringValue?.toLowerCase()?.trim()) {
|
||||
case "true":
|
||||
case "yes":
|
||||
case "on":
|
||||
case "1":
|
||||
return true;
|
||||
|
||||
case "false":
|
||||
case "no":
|
||||
case "off":
|
||||
case "0":
|
||||
case null:
|
||||
case undefined:
|
||||
|
Loading…
Reference in New Issue
Block a user