Skip to content

Commit

Permalink
properly string split
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesb93 committed Jul 14, 2022
1 parent 1885133 commit 072a8e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.lua
Expand Up @@ -266,7 +266,7 @@ end
utils.split_space = function(input_string)
-- Splits an <input_string> seperated by spaces into a table
local t = {}
for word in input_string:gmatch("%w+") do table.insert(t, word) end
for word in input_string:gmatch("%S+") do table.insert(t, word) end
return t
end

Expand Down

0 comments on commit 072a8e9

Please sign in to comment.