67 741
contributi
Nessun oggetto della modifica |
Nessun oggetto della modifica |
||
Riga 225: | Riga 225: | ||
function p.ShipName(frame) | function p.ShipName(frame) | ||
local FullName = frame.args[1] | local FullName = frame.args[1] | ||
local Prefixes = {"USS ", "IKS "} | local Prefixes = {"USS ", "IKS ", "ECS "} | ||
for _, Prefix in ipairs(Prefixes) do | for _, Prefix in ipairs(Prefixes) do | ||
FullName = FullName:gsub((Prefix), "") | FullName = FullName:gsub((Prefix), "") | ||
end | end | ||
FullName = FullName:gsub("(%w+)", "%1") | |||
return FullName | return FullName |