diff --git a/src/conf_defaults.lua b/src/conf_defaults.lua index 1ff32d1..d4e3e51 100644 --- a/src/conf_defaults.lua +++ b/src/conf_defaults.lua @@ -51,9 +51,9 @@ M.network_ap_key = { if value == "" then return true; elseif value:len() < 8 then - return false, "to short" + return false, "too short" elseif value:len() > 63 then - return false, "to long" + return false, "too long" else return true end diff --git a/src/util/settings.lua b/src/util/settings.lua index 00d6e16..fbb6127 100644 --- a/src/util/settings.lua +++ b/src/util/settings.lua @@ -115,17 +115,17 @@ local function isValid(value, baseTable) elseif varType == 'int' and math.floor(numValue) ~= numValue then return nil, "invalid int" elseif min and numValue < min then - return nil, "to low" + return nil, "too low" elseif max and numValue > max then - return nil, "to high" + return nil, "too high" end elseif varType == 'string' then local ok = true if min and value:len() < min then - return nil,"to short" + return nil,"too short" elseif max and value:len() > max then - return nil,"to long" + return nil,"too long" elseif regex and value:match(regex) == nil then return nil,"invalid value" end