(Created page with "-- Module:CSVProcessor local p = {} function p.process(frame) local csvText = frame.args[1] or "" local result = "" for line in csvText:gmatch("[^\r\n]+") do -- Process each line here. For example, we can just concatenate them. result = result .. line .. "\n" end return result end return p") |
No edit summary |
||
| Line 7: | Line 7: | ||
for line in csvText:gmatch("[^\r\n]+") do | for line in csvText:gmatch("[^\r\n]+") do | ||
-- Process each line here. For example, we can just concatenate them. | -- Process each line here. For example, we can just concatenate them. | ||
result = result .. line .. "\n" | --result = result .. line .. "\n" | ||
result = "Testing the lua" | |||
end | end | ||
return result | return result | ||
Revision as of 00:56, 4 June 2024
Documentation for this module may be created at Module:ModuleLevelTable/doc
-- Module:CSVProcessor
local p = {}
function p.process(frame)
local csvText = frame.args[1] or ""
local result = ""
for line in csvText:gmatch("[^\r\n]+") do
-- Process each line here. For example, we can just concatenate them.
--result = result .. line .. "\n"
result = "Testing the lua"
end
return result
end
return p