Difference between revisions of "Module:Common"

Jump to navigation Jump to search
1 byte removed ,  08:27, 24 December 2023
no edit summary
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')

Navigation menu