45,640
edits
No edit summary |
No edit summary |
||
Line 576: | Line 576: | ||
if data.affix then | if data.affix then | ||
if mw.ustring.match( | for _, aff in ipairs(data.affix) do | ||
if mw.ustring.match(aff, "^%-[^-]*%-$") then | |||
table.insert(data.categories, data.lang:getCanonicalName() .. " words infixed with " .. aff) | |||
elseif mw.ustring.match(aff, "%-%s%-") then | |||
table.insert(data.categories, data.lang:getCanonicalName() .. " words circumfixed with " .. aff) | |||
elseif mw.ustring.match(aff, "%-$") then | |||
table.insert(data.categories, data.lang:getCanonicalName() .. " words prefixed with " .. aff) | |||
elseif mw.ustring.match(aff, "^%-") then | |||
table.insert(data.categories, data.lang:getCanonicalName() .. " words suffixed with " .. aff) | |||
end | |||
end | end | ||
end | end |