Module:LinkUtil

From Tardis Wiki, the free Doctor Who reference
Revision as of 19:08, 30 November 2021 by Bongolium500 (talk | contribs) (Created page with "local p = {} --p stands for package -- from https://lol.fandom.com/wiki/Module:EsportsUtil function p.playerDisplay(str) -- don't return second values local ret = str...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:LinkUtil/doc

local p = {} --p stands for package

-- from https://lol.fandom.com/wiki/Module:EsportsUtil
function p.playerDisplay(str)
    -- don't return second values
    local ret = str:gsub('_', ' '):gsub('%s*%(.*%)','')
    return ret
end

return p