Handle empty input.
This commit is contained in:
parent
9d996cccac
commit
27c3657f0f
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ object Utils {
|
|||
}
|
||||
|
||||
fun parseSemVer(input: String?, version: Version): Boolean {
|
||||
if (input == null) return false
|
||||
if (input.isNullOrBlank()) return false
|
||||
|
||||
var semver = StringBuilder(input)
|
||||
var start = semver.indexOf(version.separator)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue