10,731
edits
TheNightAvl (talk | contribs) mNo edit summary |
TheNightAvl (talk | contribs) mNo edit summary |
||
Line 50: | Line 50: | ||
if mw.ustring.find(labels[it], "^.+%s+" .. conjunction .. "%s+.+") then | if mw.ustring.find(labels[it], "^.+%s+" .. conjunction .. "%s+.+") then | ||
local before = mw.ustring.gsub(labels[it], "^(.+)%s+" .. conjunction .. "%s+(.+)", "%1") | local before = mw.ustring.gsub(labels[it], "^(.+)%s+" .. conjunction .. "%s+(.+)", "%1") | ||
local | local after = mw.ustring.gsub(labels[it], "^(.+)%s+" .. conjunction .. "%s+(.+)", "%2") | ||
labels[it] = before | labels[it] = before | ||
table.insert(labels, it + 1, after) | table.insert(labels, it + 1, after) | ||
table.insert(labels, it + 1, | table.insert(labels, it + 1, conjunction) | ||
end | end | ||
end | end |