clean

external fun clean(version: String): String?(source)
external fun clean(version: String, optionsOrLoose: Boolean = definedExternally): String?(source)
external fun clean(version: String, optionsOrLoose: Options = definedExternally): String?(source)

Returns cleaned (removed leading/trailing whitespace, remove '=v' prefix) and parsed version, or null if version is invalid.