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:
parent
d64fea4337
commit
4738f8bde1
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user