diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/curl.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/curl.lua b/lib/curl.lua index a832461..da3b0c7 100644 --- a/lib/curl.lua +++ b/lib/curl.lua @@ -28,8 +28,8 @@ local get = function (url, headr, args) end fetch = io.popen(cmd):read('*all') - scode = string.match(fetch, '%d*$') - fetch = string.gsub(fetch, '%s*%d*$', '') + scode = fetch:match('%d*$') + fetch = fetch:gsub('%s*%d*$', '') return fetch, tonumber(scode) end |