5,322
回編集
細編集の要約なし |
編集の要約なし |
||
100行目: | 100行目: | ||
for _, line in ipairs(lines) do | for _, line in ipairs(lines) do | ||
local extractedGroup, num = mw.ustring.match(line, "(.+) (%d+)回") | local extractedGroup, num = mw.ustring.match(line, "(.+) (%d+)回") | ||
-- If the group is not extracted, use the provided group | -- If the group is not extracted, use the provided group | ||
if not extractedGroup or extractedGroup == "" then | if not extractedGroup or extractedGroup == "" then | ||
extractedGroup = args["グループ"] or "" | extractedGroup = args["グループ"] or "" | ||
num = mw.ustring.match(line, "(%d+)回") | |||
end | end | ||
-- If the num is nil, return an error | -- If the num is nil, return an error |