Module:pollasena-roots: Difference between revisions
No edit summary |
No edit summary |
||
| Line 126: | Line 126: | ||
table.insert(terms, item) | table.insert(terms, item) | ||
local function one_asterisk(str) | |||
return "*" .. gsub(str, "^*+", "") | |||
end | |||
local cat_term = one_asterisk(args.c[root_index] or item.term) | |||
if code == "wasc" then -- Wascotl root and suffix handling | if code == "wasc" then -- Wascotl root and suffix handling | ||
local suffix = match(cat_term, "^*[%w']+(%-[%w']+)$") | local suffix = match(cat_term, "^*[%w']+(%-[%w']+)$") | ||