summaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
authorCorey Osman <corey@logicminds.biz>2015-09-03 10:31:51 -0700
committerCorey Osman <corey@logicminds.biz>2015-09-04 08:09:26 -0700
commitf2f2db4795fc0e3b9387e1e6c003e8e75efde903 (patch)
tree683943b340206622911d3108f50b1e7f25cc4035 /README.markdown
parent6a1afae97e0451590c833acdd79fd730f49137b9 (diff)
accept any case of boolean strings
* previously the str2bool function did not accept 'TRUE' as a bool type. This causes the function to now accept TRUE, FALSE strings as a boolean type in order to be converted to a proper boolean. * This would also cause Y,N, YES, NO to be accepted as boolean types as well.
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.markdown b/README.markdown
index a880222..3cc47a5 100644
--- a/README.markdown
+++ b/README.markdown
@@ -623,7 +623,7 @@ Returns a new string where runs of the same character that occur in this set are
#### `str2bool`
-Converts a string to a boolean. This attempts to convert strings that contain values such as '1', 't', 'y', and 'yes' to 'true' and strings that contain values such as '0', 'f', 'n', and 'no' to 'false'. *Type*: rvalue.
+Converts a string to a boolean regardless of case. This attempts to convert strings that contain values such as '1', 't', 'y', 'Y', 'YES','yes', and 'TRUE' to 'true' and strings that contain values such as '0', 'f','F', 'N','n', 'NO','FALSE', and 'no' to 'false'. *Type*: rvalue.
#### `str2saltedsha512`