currency-cbr-search script small fix

This commit is contained in:
Evgeny
2022-05-05 08:46:46 +03:00
parent 56d8a289dc
commit 39961f7d4f

View File

@@ -21,6 +21,8 @@ local val = 0
function on_search(inp) function on_search(inp)
val = 0 val = 0
local c,d,m,y = inp:match("^(%a%a%a)%s?(%d?%d?)%s?(%d?%d?)%s?(%d?%d?%d?%d?)$") local c,d,m,y = inp:match("^(%a%a%a)%s?(%d?%d?)%s?(%d?%d?)%s?(%d?%d?%d?%d?)$")
if c == nil then return end
cur = c:upper() cur = c:upper()
local t = os.date("*t") local t = os.date("*t")
if d == "" then if d == "" then