Module:ExtractImageURL

From RuneTails
Revision as of 02:07, 13 February 2025 by NES (talk | contribs) (Created page with "local p = {} function p.getPath(frame) local url = frame.args[1] or "" local path = url:match("https?://[^/]+/(.*)") return path or "" end return p")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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