Module:IPAddress: Difference between revisions
imported>DarkMatterMan4500 Created page with "local p = {} function p._isIpV6(s) local dcolon, groups if type(s) ~= "string" or s:len() == 0 or s:find("[^:%x]") -- only colon and hex digits are legal chars or s:find("^:[^:]") -- can begin or end with :: but not with single : or s:find("[^:]:$") or s:find(":::") then return false end s, dcolon = s:gsub("::", ":") if dcolon > 1 then return false end -- at most one :: s = s:gsub("^:?", ":") -- prepend : if needed, upper s, groups = s:gsub(":%x%x?%x..." |
Rangerkid51 (talk | contribs) Rangerkid51 changed the content model of the page Module:IPAddress from "plain text" to "Scribunto module" |
||
(No difference)
|