Sanitize version
Examples
x <- c("2.7.15rc1", "1.10.0-patch1", "1.0.2k-fips")
sanitizeVersion(x)
#> [1] ‘2.7.15’ ‘1.10.0’ ‘1.0.2’
Sanitize version
x <- c("2.7.15rc1", "1.10.0-patch1", "1.0.2k-fips")
sanitizeVersion(x)
#> [1] ‘2.7.15’ ‘1.10.0’ ‘1.0.2’