toVersion

fun String.toVersion(): Version

Parses the string as a Version and returns the result or throws a VersionFormatException if the string is not a valid representation of a semantic version.

Sources

Link copied to clipboard