Content deleted Content added
fix semantics of check if the current row should be highlighted |
change error handling of seeds parameter, so if one seed is specified incorrectly, the others will still be processed |
||
Line 94:
for idx, seed in ipairs(seedList) do
local seedData = mw.text.split(seed, '%s*:%s*')
if (#seedData
local seedNumber = tonumber(mw.text.trim(seedData[1]))▼
local team = mw.text.trim(seedData[2])▼
seeds[seedNumber] = team▼
seeds[team] = seedNumber▼
end
▲ local seedNumber = tonumber(mw.text.trim(seedData[1]))
▲ local team = mw.text.trim(seedData[2])
▲ seeds[seedNumber] = team
▲ seeds[team] = seedNumber
end
end -- function parseSeeds()
|