From 39961f7d4f16d229796c68aa670d2e357dd30a1e Mon Sep 17 00:00:00 2001 From: Evgeny Date: Thu, 5 May 2022 08:46:46 +0300 Subject: [PATCH] currency-cbr-search script small fix --- community/currency-cbr-search.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/community/currency-cbr-search.lua b/community/currency-cbr-search.lua index 6b6ec6e..2698919 100644 --- a/community/currency-cbr-search.lua +++ b/community/currency-cbr-search.lua @@ -21,6 +21,8 @@ local val = 0 function on_search(inp) val = 0 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() local t = os.date("*t") if d == "" then @@ -65,4 +67,4 @@ end function on_long_click() system:copy_to_clipboard(val) return true -end \ No newline at end of file +end