diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2013-08-07 13:11:10 +0200 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-08-07 13:11:10 +0200 |
commit | cf4033d9e77993aede4c94349c87379a65893319 (patch) | |
tree | 089935a8518f2b2a333fc0d608eae849ba0582c5 /lualibs-boolean.lua | |
parent | 2c4bb4e4fee25ed79f6183bff9200eba168c021d (diff) | |
download | lualibs-cf4033d9e77993aede4c94349c87379a65893319.tar.gz |
sync with Context as of date
Diffstat (limited to 'lualibs-boolean.lua')
-rw-r--r-- | lualibs-boolean.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lualibs-boolean.lua b/lualibs-boolean.lua index f087f1a..8d11080 100644 --- a/lualibs-boolean.lua +++ b/lualibs-boolean.lua @@ -59,9 +59,9 @@ end function string.is_boolean(str,default) if type(str) == "string" then - if str == "true" or str == "yes" or str == "on" or str == "t" then + if str == "true" or str == "yes" or str == "on" or str == "t" or str == "1" then return true - elseif str == "false" or str == "no" or str == "off" or str == "f" then + elseif str == "false" or str == "no" or str == "off" or str == "f" or str == "0" then return false end end |