Module:VersionHelpers

-- See the talk page for documentation. local versions = require("Module:StudioVersions")

local p = {}

--% This function parses a version string. --@ (string) version_string the version string, for example "0.379.0.292444" --: (string) the major component --: (string) the minor component --: (string) the maint component --: (string) the build component function p.parse_version_string(version_string) local major, minor, maint, build = mw.text.split(version_string, ".", true) assert(major) assert(minor) assert(maint) assert(build) return major, minor, maint, build end

return p