0
0
mirror of https://github.com/Doodle3D/doodle3d-firmware.git synced 2024-12-22 11:03:48 +01:00

spelling corrections

This commit is contained in:
peteruithoven 2013-10-18 16:16:05 +02:00
parent d64fea4337
commit 4738f8bde1
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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