Фиксы ввода вывода и ls валидация параметров
This commit is contained in:
+5
-1
@@ -267,11 +267,15 @@ function upd()
|
||||
|
||||
if inp[1] ~= nil then
|
||||
local req = tostring(inp[1])
|
||||
if #req > 0 and req ~= prevReq then
|
||||
if #req == 0 then
|
||||
prevReq = ""
|
||||
elseif req ~= prevReq then
|
||||
prevReq = req
|
||||
local resp = processReq(req)
|
||||
out[1] = resp
|
||||
end
|
||||
else
|
||||
prevReq = ""
|
||||
end
|
||||
|
||||
table.clear(inp)
|
||||
|
||||
Reference in New Issue
Block a user