toVersionOrNull

fun String.toVersionOrNull(): Version?

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

Sources

Link copied to clipboard