From 0bfb740fcd17684f8b40f915928cfc621d159798 Mon Sep 17 00:00:00 2001 From: Jim Ursetto Date: Sun, 1 May 2022 20:52:35 -0500 Subject: [PATCH] Properly test for boolean "true" "true" was treated as an invalid boolean. All strings in the slice of valid boolean values need to be lowercase, since the input is lowercased before comparison. --- message.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/message.go b/message.go index f21f798..73ea6a5 100644 --- a/message.go +++ b/message.go @@ -18,4 +18,4 @@ const ( var False = []string{"off", "no", "0", "false"} // True is slice of array for true logical representation in string -var True = []string{"on", "yes", "1", "True"} +var True = []string{"on", "yes", "1", "true"}