currency-cbr-search script small fix
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user