10,731
edits
TheNightAvl (talk | contribs) mNo edit summary |
TheNightAvl (talk | contribs) mNo edit summary |
||
Line 49: | Line 49: | ||
for conjunction, _ in pairs(conjunctions) do | for conjunction, _ in pairs(conjunctions) do | ||
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 conj_temp = mw.ustring.gsub(labels[it], "^(.+)%s+conjunction%s+(.+)", "%2") | local conj_temp = mw.ustring.gsub(labels[it], "^(.+)%s+" .. conjunction .. "%s+(.+)", "%2") | ||
local after = mw.ustring.gsub(labels[it], "^(.+)%s+conjunction%s+(.+)", "%3") | local after = mw.ustring.gsub(labels[it], "^(.+)%s+" .. conjunction .. "%s+(.+)", "%3") | ||
labels[it] = before | labels[it] = before | ||
table.insert(labels, it + 1, after) | table.insert(labels, it + 1, after) |