Modulo:FunzioniGeneriche: differenze tra le versioni

Vai alla navigazione Vai alla ricerca
m (Match)
Nessun oggetto della modifica
Riga 216: Riga 216:
function p.TestSpaces(frame)
function p.TestSpaces(frame)
local TestString = "Seven of Nine"
local TestString = "Seven of Nine"
local Match = string.match(TestString, "[^%s]+$")
return string.match(TestString, "[^%s]+$")
return Match .. " - " .. string.upper(string.sub(Match, 1, 2))
end
end
return p
return p