Module:ExtractImageURL

From RuneTails

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

local p = {}

function p.getPath(frame)
    local url = frame.args[1] or ""
    local path = url:match("https?://[^/]+/(.*)") 
    return path or ""
end

return p