Dummy fix

This commit is contained in:
Alexandre Archambault 2017-06-24 15:22:03 +02:00
parent 3c1d99e64f
commit 8d1ff10914
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ object MavenRepository {
val SnapshotTimestamp = "(.*-)?[0-9]{8}\\.[0-9]{6}-[0-9]+".r
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 {
case SnapshotTimestamp(null) => "SNAPSHOT"