LIVM/faxm/freeform.lua
2022-04-09 04:20:48 +07:00

11 lines
No EOL
260 B
Lua

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
}