comparePre

fun comparePre(other: String): Int(source)
fun comparePre(other: SemVer): Int(source)

Compares the prerelease portion of two versions.

Return

  • 0 if this == other

  • 1 if this is greater

  • -1 if other is greater.