Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:LinkUtil

From Tardis Wiki, the free Doctor Who reference
Revision as of 19:47, 30 November 2021 by Bongolium500 (talk | contribs)

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.stripDab(str)
    -- don't return second values
    local ret = str:gsub('_', ' '):gsub('%s*%(.*%)','')
    return ret
end

function p.stripSMW(str)
    local ret = str:gsub('|.*%]%]',''):gsub('%[%[:','')
    return ret
end

return p
Cookies help us deliver our services. By using our services, you agree to our use of cookies.