Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a24f35c00b5a227c

Jump to content

Module:Strip version patch

From Wikipedia, the free encyclopedia

-- Strip only third component (patch) of a software version if present
-- For instance 6.16.1 as parameter will return 6.16
-- Used on [[Linux kernel version history]]
local p = {}

function p.main(frame)
    local version = frame.args[1] or ''
    local cleaned = mw.ustring.gsub(version, "^(%d+%.%d+)%.%d+$", "%1")
    return cleaned
end

return p