LIVM/faxm/freeform.lua

11 lines
249 B
Lua
Raw Normal View History

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