LIVM/faxm/freeform.lua

11 lines
260 B
Lua
Raw Normal View History

2022-04-09 00:20:48 +03:00
return {
source = function(source)
return source:gsub("\n", ""):gsub("]", "];"):gsub(":", ":;")
end,
any_line = function(line)
return line:trim():gsub("%s+", " ")
end,
line = function(line)
return line:gsub(",", " "):gsub("%s+", " "):split" "
end
}