1 2 3 4 5 6 7 8 9 10 11
local M = {} function M.splitspace(str) local chunks = {} for substring in str:gmatch("%S+") do table.insert(chunks, #chunks, substring) end return chunks end return M