Rename VersionNumber#satisfies to VersionNumber#matchesSemVer

VersionNumber#matchesSemVer receive SemanticSelector instead of String
This commit is contained in:
tanishiking24 2018-05-12 12:26:44 +09:00
parent 4e8b6dc7aa
commit d5f5cbb061
1 changed files with 2 additions and 2 deletions

View File

@ -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. */