Module:xchc-noun: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 35: Line 35:
pat = pat:gsub("B", todef("backness")):gsub("R", todef("roundness"))
pat = pat:gsub("B", todef("backness")):gsub("R", todef("roundness"))
else
else
pat = pat:gsub(pat:match("[BR]"),todef(pat:match("[BR]") == "B" and "backness" or "roundness"))
pat = pat:gsub("([BR])",function(s) return todef(s == "B" and "backness" or "roundness") end)
end
end


Navigation menu