parse

fun parse(spec: String): Version

Parse a string spec and return a rich Version object.

Return

A parsed Version containing the major, minor, and patch fields.

Throws

if the provided spec is not a semantic version.