Module:AVDevice: Difference between revisions
Rename args.oem_manufacturer to args.oem to match CRT model convention (via update-page on MediaWiki MCP Server) |
Fix Lua error at line 612: wrap bare gsub() calls in parentheses to prevent multi-return value issue with table.insert (TBC + Documents sections) (via update-page on MediaWiki MCP Server) |
||
| Line 394: | Line 394: | ||
local cells = {} | local cells = {} | ||
for cellContent in rowContent:gmatch('<td[^>]*>(.-)</td>') do | for cellContent in rowContent:gmatch('<td[^>]*>(.-)</td>') do | ||
table.insert(cells, cellContent:gsub('<[^>]+>', '')) | table.insert(cells, (cellContent:gsub('<[^>]+>', ''))) | ||
end | end | ||
if #cells >= 2 then | if #cells >= 2 then | ||
| Line 610: | Line 610: | ||
local cells = {} | local cells = {} | ||
for cellContent in rowContent:gmatch('<td[^>]*>(.-)</td>') do | for cellContent in rowContent:gmatch('<td[^>]*>(.-)</td>') do | ||
table.insert(cells, cellContent:gsub('<[^>]+>', '')) | table.insert(cells, (cellContent:gsub('<[^>]+>', ''))) | ||
end | end | ||
if #cells >= 2 then | if #cells >= 2 then | ||