Skip to content

Commit

Permalink
Update handler.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
prabagodelrio authored Oct 26, 2022
1 parent 898f83d commit ef37b69
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@ local function split(str, sep)
local n=1
for w in str:gmatch("([^"..sep.."]*)") do
ret[n] = ret[n] or w:gsub("^%s*(.-)%s*$", "%1") -- strip whitespace
if w == "" then
n = n + 1
if w ~= "" then
ret[n] = w
n = n + 1
end
end
return ret
Expand Down

0 comments on commit ef37b69

Please sign in to comment.