Фиксы ввода вывода и ls валидация параметров

This commit is contained in:
2026-06-14 02:35:17 +03:00
parent 5ef9eb1cb5
commit 14f47767b3
2 changed files with 17 additions and 3 deletions
+5 -1
View File
@@ -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)