Modulo:Bio/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
+test sandbox
aggiornata checkParamValue
Riga 151:
if type(paramType) == "function" then
ret = paramType(value, origArgs)
elseif type(paramType) == "string" and not value:match(paramType) then
if paramTyperet == "string" thenfalse
-- "string" accetta qualunque valore
elseif paramType == "number" then
if not tonumber(value) then
ret = false
end
elseif not value:match(paramType) then
ret = false
end
end