Module:Utils

local p = {}

function p.getHostFromURL( frame ) s = frame.args[1] return (s.."/"):match("://(.-)[:/]") end

function p.stripAPIURL( frame ) s = frame.args[1] a,b = s:match("https?://(www.)?(.+)") a,b = s:match("https?://(.)(.+)") return b end

return p