1,124
edits
Line 52: | Line 52: | ||
function com.fUpper(text) | function com.fUpper(text) | ||
local words = mw.text.split(text, '%s | local words = mw.text.split(text, '%s') | ||
for k, v in ipairs(words) do | for k, v in ipairs(words) do | ||
words[k] = v:gsub('(.)(.*)', string.upper('%1') .. '%2') | words[k] = v:gsub('(.)(.*)', string.upper('%1') .. '%2') |