Jump to content

Module:Electowidget: Difference between revisions

Still futzing
(Still futzing)
(Still futzing)
Line 4:
local p = {}
-- Function to parse the line and return a Lua native data structure
 
function p.parse_prefs_line(line)
if not line or line == '' then
return {}
else
return line
end
 
local qty, prefs = tostring(line):match('(%d+):%s*(.*)')
local prefs_table = {}
 
Line 19 ⟶ 18:
 
local rank = 1
if 1 == 1 then
 
return tostring(prefs)
end
for name, rating in prefs:gmatch('([^/]+)/([^ ]+)') do
prefs_table[rank] = {
Cookies help us deliver our services. By using our services, you agree to our use of cookies.