mirror of https://github.com/sbt/sbt.git
Dummy fix
This commit is contained in:
parent
3c1d99e64f
commit
8d1ff10914
|
|
@ -12,7 +12,7 @@ object MavenRepository {
|
||||||
val SnapshotTimestamp = "(.*-)?[0-9]{8}\\.[0-9]{6}-[0-9]+".r
|
val SnapshotTimestamp = "(.*-)?[0-9]{8}\\.[0-9]{6}-[0-9]+".r
|
||||||
|
|
||||||
def isSnapshot(version: String): Boolean =
|
def isSnapshot(version: String): Boolean =
|
||||||
version.endsWith("SNAPSHOT") || SnapshotTimestamp.findFirstIn(version).nonEmpty
|
version.endsWith("SNAPSHOT") || SnapshotTimestamp.pattern.matcher(version).matches()
|
||||||
|
|
||||||
def toBaseVersion(version: String): String = version match {
|
def toBaseVersion(version: String): String = version match {
|
||||||
case SnapshotTimestamp(null) => "SNAPSHOT"
|
case SnapshotTimestamp(null) => "SNAPSHOT"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue