mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2024-12-22 19:13:49 +01:00
spelling corrections
This commit is contained in:
parent
d64fea4337
commit
4738f8bde1
@ -51,9 +51,9 @@ M.network_ap_key = {
|
|||||||
if value == "" then
|
if value == "" then
|
||||||
return true;
|
return true;
|
||||||
elseif value:len() < 8 then
|
elseif value:len() < 8 then
|
||||||
return false, "to short"
|
return false, "too short"
|
||||||
elseif value:len() > 63 then
|
elseif value:len() > 63 then
|
||||||
return false, "to long"
|
return false, "too long"
|
||||||
else
|
else
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
@ -115,17 +115,17 @@ local function isValid(value, baseTable)
|
|||||||
elseif varType == 'int' and math.floor(numValue) ~= numValue then
|
elseif varType == 'int' and math.floor(numValue) ~= numValue then
|
||||||
return nil, "invalid int"
|
return nil, "invalid int"
|
||||||
elseif min and numValue < min then
|
elseif min and numValue < min then
|
||||||
return nil, "to low"
|
return nil, "too low"
|
||||||
elseif max and numValue > max then
|
elseif max and numValue > max then
|
||||||
return nil, "to high"
|
return nil, "too high"
|
||||||
end
|
end
|
||||||
|
|
||||||
elseif varType == 'string' then
|
elseif varType == 'string' then
|
||||||
local ok = true
|
local ok = true
|
||||||
if min and value:len() < min then
|
if min and value:len() < min then
|
||||||
return nil,"to short"
|
return nil,"too short"
|
||||||
elseif max and value:len() > max then
|
elseif max and value:len() > max then
|
||||||
return nil,"to long"
|
return nil,"too long"
|
||||||
elseif regex and value:match(regex) == nil then
|
elseif regex and value:match(regex) == nil then
|
||||||
return nil,"invalid value"
|
return nil,"invalid value"
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user