mirror of https://github.com/sbt/sbt.git
Rename VersionNumber#satisfies to VersionNumber#matchesSemVer
VersionNumber#matchesSemVer receive SemanticSelector instead of String
This commit is contained in:
parent
4e8b6dc7aa
commit
d5f5cbb061
|
|
@ -27,8 +27,8 @@ final class VersionNumber private[sbt] (
|
|||
case _ => false
|
||||
}
|
||||
|
||||
def satisfies(selector: String): Boolean = {
|
||||
SemanticSelector(selector).matches(this)
|
||||
def matchesSemVer(selsem: SemanticSelector): Boolean = {
|
||||
selsem.matches(this)
|
||||
}
|
||||
|
||||
/** A variant of mkString that returns the empty string if the sequence is empty. */
|
||||
|
|
|
|||
Loading…
Reference in New Issue