aboutsummaryrefslogtreecommitdiff
path: root/lua/denote/util.lua
blob: ce998f0a89e0659afe2aafed73165665ea35d132 (plain)
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